Skip to content

samiksha2903-new/Lets-Contribute

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Lets-Contribute

Fork, Clone, Add Code, and Commit to a Repository

This guide provides a step-by-step overview of how to fork a repository, clone it to your local machine, add code by creating a separate folder, and commit the changes back to the repository.

Forking a Repository

  1. Navigate to the repository you want to contribute to on GitHub.

  2. Click the "Fork" button in the upper right corner of the repository's page.

  3. This will create a copy of the repository under your GitHub account.

Cloning the Forked Repository

  1. Open your terminal or command prompt.

  2. Navigate to the directory where you want to store the repository.

  3. Use the git clone command to clone your forked repository.

Adding Code

  1. Create a new folder within the cloned repository to organize your code.

  2. Add your code or files to the newly created folder.

  3. Use the git add command to stage the changes.

  4. Commit your changes with a descriptive message.

Pushing Changes to the Repository

  1. Push your changes to your forked repository on GitHub.

Creating a Pull Request

  1. Navigate to your forked repository on GitHub.

  2. Click the "New Pull Request" button.

  3. Compare the changes and, if everything looks good, click "Create Pull Request."

  4. Add a title and description for your pull request.

  5. Click "Create Pull Request" again to submit it.

That's it! You've successfully forked, cloned, added code, and created a pull request for the repository.

Happy coding!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%