4744

I forked a project, made changes, and created a pull request which was accepted. New commits were later added to the repository. How do I get those commits into my fork?

9

32 Answers 32

1
2
0

Delete your remote dev from github page

then apply these commands:

1) git branch -D dev
2) git fetch upstream
3) git checkout master
4) git fetch upstream && git fetch upstream --prune && git rebase upstream/master && git push -f origin master
5) git checkout -b dev
6) git push origin dev
7) git fetch upstream && git fetch upstream --prune && git rebase upstream/dev && 8) git push -f origin dev

to see your configuration use this command:

git remote -v
0

GitHub have function for it, You just need click buttons Sync fork and Update branch

enter image description here

1
2

Not the answer you're looking for? Browse other questions tagged or ask your own question.