Reputation: 387
I have a cloned repository which is now behind origin by X commits. git pull
looks like it works fine, compressing, receiving etc. But when I try git status
after git pull
there's a message that I'm still behind. What could be the cause of this problem?
That's a message after git status
:
On branch release/xxxx
Your branch is behind 'origin/release/xxxx' by 351 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean`
Upvotes: 5
Views: 4658
Reputation: 31
just do git pull origin master
this will pull changes from the origin remote, master branch and merge them to the local checked-out branch.
Upvotes: -2
Reputation: 24194
Pull with branch name:
$ git pull origin release/xxxx
Note: you are running git pull origin/release/xxxx (give space instead '/' after origin)
Upvotes: 7
Reputation: 5434
Instead of running simply git pull
, pull a specific branch:
git pull origin release/xxxx
Upvotes: 1