无法从远程存储库中提取其他用户提交 - GIT
我正在使用 TortoiseGIT 和 Windows XP,并且我们已经在共享网络驱动器上设置了远程存储库。
团队中有我们两个人,我的同事可以很好地推送/拉取他自己的提交(但看不到我的任何提交)。如果我将远程存储库克隆到我的计算机上,我看不到他的任何提交,只有我已经承诺的。
我们都在 master 分支上工作。
我完全不知道这个问题是什么。有什么想法可以指引我正确的方向吗?
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, 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用
git fetch
。然后通过将--all
修饰符添加到gitk
或git log
来查看所有分支。此时,您可以将您的更改与服务器上的内容合并或重新建立基础。只有这样做之后,您才能够推动您的更改。Use
git fetch
. Then take a look at all branches by adding the--all
modifier to eithergitk
orgit 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.