Here is my scenario: I have a Forked Repo (say F) form original repo on GitHub (say O).
My local copy of Forked repo is L.
As I am working with L, I have 1 commit locally which is not yet pushed to F and some untracked changes for issue which I am working currently.
While this is happening, the original repo O gets updated. Now I will have to sync F and L with O.
I followed the steps as given here, i.e. these to be more precise:
# Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream
# Make sure that you're on your master branch:
git checkout master
# Rewrite your master branch so that any commits of yours that
# aren't already in upstream/master are replayed on top of that
# other branch:
git rebase upstream/master
After doing this, I don't see any change in F on GitHub. There were 4 branches in O, but after following above steps, I don't see any of those new branches in F.
Then I thought that perhaps I need to push changes to F, so I did a git push origin master
. My commits are visible in F as usual, but I don't see any of the new branches in F. So perhaps F did not get synchronized with O.
So what am I missing and how do I do that?