-
Notifications
You must be signed in to change notification settings - Fork 2.2k
How to: Git & Pull Requests
This is a mini step-by-step tutorial on how to contribute using Pull Requests for this project.
My username (LecJackS) will represents yours on the screenshots.
There is no single method, but I think this one is the easier and least prompt to errors.
Go to Atcold github repository and fork it clicking the button as shown here:
Download this fork (not the main repo!) on your local computer using the terminal:
On your terminal:
git clone https://github.com/your-username/pytorch-Deep-Learning.git
Edit files on this local copy of the fork, keeping the same directories and filenames.
Update your github fork with the modifications you've made to your local files:
On your terminal:
cd pytorch-Deep-Learning
git push
# You'll be asked to write github username and password
Your github fork now contains all the changes you've made in your local computer.
Note: You can use a Git GUI client for this matter if you don't like using the terminal that much.
Go to Atcold github repository again (not yours!) and click on Pull requests tab.
Once there, click on the New pull request green button:
Click on "compare across forks":
Select your fork from the second dropdown menu:
You should see a green check mark and "Able to merge" legend.
Verify that all changes showed in this page are only the ones you've made.
Now you can click "Create pull request"
Be descriptive with the changes made here, as specified on the wiki page Translation Guidelines
After your content is reviewed and accepted, it will be merged to the main repository, and your pull request will be closed.
Here you've a couple of options, but the easier one is to remove this fork of yours, and later on, when you contribute again, you can repeat the steps above.
For that, you can click on Fork settings
And here confirm the removal of this fork: