We have four developers working in stash 1.2. Two of the developers are about 7 commits behind the current git head. When I do a "git pull", I expect that those 7 commits will get pulled, but in fact nothing happens.
Performing a new clone on the repo results in all the commits to be pulled, as expected.
The other two developers have not had this issue, ie they were able to pull the commits without errors. As I mentioned previously, the workaround is to do a new "git clone".
Doing a "git pull" shows "Already up-to-date." which is wrong.
git pull is just a shortcut for a git fetch followed by a git merge of the checkout branch with its remotely tracked branch. This may be occurring if there are difference in the branches which are currently checked out by different developers or if they have different remotely tracked branches.
Lets say you want to make sure you have the latest master from the remote repository. You first check you are on master:
Then you can fetch and merge the latest from the remote repository:
git merge origin/master
If you still are experiencing problems I would suggest contacting http://support.atlassian.com/ as it may require more information for us to diagnose the problem
Could you please run:
git fetch -v git branch -r -v
Fetch will retrieve all the changes, `git branch -r -v` will show you the remote branches you track in your local repository including the commit they point to.
This list should match the latest changes that are on the Stash server.
If this list of commits is correct then your local branches need to be updated to reflect those changes, but retrieving the changes actually worked.
Let me know if you see the latest changes on the remote tracking branches.
As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs