Skip to content
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.

  1. Navigate to the directory with our repository:
$ cd /path/to/python-novice-inflammation
  1. 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
  1. Switch to the gh-pages branch
$ git checkout -f gh-pages
  1. Get the latest version of the lesson
$ git reset --hard origin/gh-pages
  1. Download (pull) the latest changes from the our repository:
$ git pull origin gh-pages
  1. Upload (push) these changes to your fork:
$ git push your-GitHub-username gh-pages
  1. Head on over to https://github.com/swcarpentry/python-novice-inflammation and submit your Pull Request!