Skip to content

Fixing a PR created from the gh pages branch

Maxim Belkin edited this page Apr 11, 2022 · 3 revisions

Please follow the steps below in order to move changes you introduced on the gh-pages branch to a different branch.

  1. Save changes in my-changes branch.

    git checkout gh-pages
    git branch my-changes
  2. Sync your gh-pages with our repository
    Note, your-fork is the name of your fork in your local repository. See the output of git remote -v.

    git fetch https://github.com/swcarpentry/python-novice-inflammation
    git reset --hard FETCH_HEAD
    git push --force your-fork gh-pages
  3. Push my-changes branch to your fork

    git checkout my-changes
    git push your-fork my-changes
    

Now you can submit a Pull Request (PR) to our repository from the my-changes branch.