How to get a clean, up-to-date with master branch in a forked git repository — Wreathe Documentation

This article applies to: Wreathe 7.3

If you have a fork of a git repository and want to have a new clean branch that's up to date with the original repository you forked it from, run something like this, substituting in the correct values for the camelCase text:

git clone https://github.com/yourName/repositoryName.git; cd repositoryName; git checkout -b nameForNewBranch shaSumOfLastUpstreamCommitYouHave; git remote add upstream https://github.com/ownerName/repositoryName.git; git pull upstream master; git fetch upstream master; git reset --hard upstream/master; git push --set-upstream origin nameForNewBranch