Monday, May 4, 2020

Resync with upstream git repo

To complete resynch with upstream repo, do the following:

1. git remote add upstream https://github.com/hyperledger-cicd/cello.git
2. git fetch upstream
3. git reset --hard upstream/master
4. git checkout master
5. git merge upstream/master
6. git push --force

Once this is done, your forked repo should be completely insynch with the upstream repo. the word upstream in this case is just a name for the upstream repo, it can be named any thing you like. If you are not using the word upstream, you will have to make sure that the following on commands using the correct upstream name.

No comments:

Post a Comment