I am working on Branch A while other dev working on Branch B.
I wanted to pull everything in Branch B to Branch A. I have cloned both branches in my local.
What I did upon reading one of the SO post:
git checkout branch B
git pull
git checkout branch A
git merge branch B
And the merge message were following:
Auto-merging fileBar
Merge made by the 'recursive' strategy.
.../file | 92 ++++++++++++++++++----
file1 | 9 ++-
.../file2 | 2 +-
.../file3 | 6 +-
.../file4 | 4 +-
.../file5 | 2 +-
file6 | 2 +-
.../file7 | 4 +-
8 files changed, 91 insertions(+), 30 deletions(-)
However, i was expect to solve some merge conflict, i was surprised that git does not yell at me for this.
So what I did after this point:
git status
It shows that nothing in my local is changed, weird?
then i did:
git log
which shows:
Author: me <me@gmail.com>
Date: Mon Mar 18 14:47:00 2019 -0400
Merge branch 'B' into A
I also tried to pull branch B while on branch A:
git pull origin branchB
but it says it is update to date:
From https://github.com/myGit/myRepo
* branch BranchB -> FETCH_HEAD
Already up to date.
However, when I log on to Git, those repos are clearly not the same on remote.
At this point, I am confused. what happened here? How do I pull branch B into branch A?
Update: I just found out that when i did:
git checkout branch B
git pull
The new changes were not actually pulled. when I did git pull, it says it is already up to date, while it is clearly not. My local still have the old version of branch B. How? I am confused by everything at this point
What I have tried:
git fetch --all
git reset --hard origin/BranchB
None of these worked