-
-
Notifications
You must be signed in to change notification settings - Fork 781
Updating your fork
Maxim Belkin edited this page Aug 28, 2020
·
5 revisions
Before you submit a Pull Request, you have to update your fork of our repository on GitHub.
To do that, please follow the steps below. When doing so, please replace all occurrences of your-GitHub-username
with your actual GitHub username.
- Navigate to the directory with our repository:
$ cd /path/to/python-novice-inflammation
- Make sure you have our repository and your personal fork as remotes:
$ git remote -v
your-GitHub-username https://github.com/your-GitHub-username/python-novice-inflammation.git (fetch)
your-GitHub-username https://github.com/your-GitHub-username/python-novice-inflammation.git (push)
origin https://github.com/swcarpentry/python-novice-inflammation.git (fetch)
origin https://github.com/swcarpentry/python-novice-inflammation.git (push)
If you don't see your-GitHub-username
repository above, add it with:
$ git remote add your-GitHub-username https://github.com/your-GitHub-username/python-novice-inflammation.git
$ git fetch --all
- Switch to the
gh-pages
branch
$ git checkout -f gh-pages
- Get the latest version of the lesson
$ git reset --hard origin/gh-pages
- Download (pull) the latest changes from the our repository:
$ git pull origin gh-pages
- Upload (push) these changes to your fork:
$ git push your-GitHub-username gh-pages
- Head on over to https://github.com/swcarpentry/python-novice-inflammation and submit your Pull Request!