- Open terminal in fork folder
- Add the original repo calling it “upstream”
- Fetch all the branches of that remote
- Check out your fork’s local master branch.
- Merge the changes from upstream/master into your local master branch. This brings your fork’s master branch into sync with the upstream repository, without losing your local changes.
1 |
git remote add upstream https://github.com/DIRACGrid/DIRACDocs.git |
1 |
git fetch upstream |
1 |
git checkout master |
1 |
git merge upstream/master |