Can't pull other users Commits from Remote Repository - GIT
I'm using TortoiseGIT and Windows XP and we've set up a remote repository on a shared Network drive.
There's two of us in the team and my colleague can push/pull his own commits just fine (but can't see any of mine).If i clone the remote repository on to my machine, i can't see any of his commits, 开发者_StackOverflow社区only the ones i've committed.
We're both working on the master branch.
I'm totally stumped as to what this problem is. Any ideas to point me in the right direction?
Use git fetch
. Then take a look at all branches by adding the --all
modifier to either gitk
or git log
. At this point you can merge or rebase your changes with what's on the server. Only after you do that will you be able to push your changes.
If a fresh clone of the repository shows only your commits, that means that your colleague is not pushing his changes correctly. Maybe there is something in the way blocking the push, e.g. unresolved merges or conflicts.
精彩评论