Skip to content

How to keep GitHub Fork Updated (no merge - the right way)

Here is solution how to keep your forks updated without merge and clean history

Terminal window
git clone[username]/[repo].git
git remote add upstream[username2]/[repo].git

When something change in forked repo

Terminal window
git fetch upstream
git checkout [branch]
git rebase upstream/[branch]