git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git pull upstream master
git push origin master
Hello, I have some question about this method.
I have forked a repo from github and made some commit on my master branch. And the upstream repo's master branch have some commits ahead of mine. So I need sync these commits.
I got this ugly commit history below:
How can I remove the top 3 commits in the picture?