-
-
Notifications
You must be signed in to change notification settings - Fork 38
Updating a fork
Andrew Morrison edited this page Apr 22, 2021
·
4 revisions
If you have via a fork of this repository, and need to update it, you can use one of the following methods. Whichever you choose, to avoid conflicts it is best to do so after you have committed, pushed, submitted your changes as a pull request, and had that approved and merged by the Bodleian.
Using the command line:
git remote add upstream git@github.com:bodleian/medieval-mss.git
git fetch upstream
git checkout master
git rebase upstream/master
git push -f origin master
Using GitHub Desktop:
- Ensure you are viewing the master branch of your fork of medieval-mss
- Go to Repository > Repository Settings
- Copy and paste whatever is currently the Primary Remote Repository to a text file, then change it to
git@github.com:bodleian/medieval-mss.git
- Repository > Pull
- Go back to Repository > Repository Settings and set the Primary Remote Repository back to what it was before
- Repository > Push
Using the GitHub web interface:
- Log in to https://github.com/login
- Go to
https://github.com/<myusername>/medieval-mss/compare/master...bodleian:master/
where<myusername>
is replaced with your GitHub username. - Click Create pull request
- Merge that new pull request into your fork's master branch
- Update your local copy. In GitHub Desktop, ensure you are viewing the master branch of your fork of medieval-mss, then select Repository > Pull
If you run into trouble, you can delete your fork and re-fork from the Bodleian original. But you will lose any changes made on your fork which hadn't been merged into the Bodleian repository.