【发布时间】:2014-07-07 06:05:52
【问题描述】:
我在我的局域网中创建了一个新的远程存储库并添加了项目(PROJECT 1,PROJECT 2)。
用户 A 和用户 B 一次克隆存储库,用户 A 在 PROJECT 1 中进行更改并推送这些更改。
用户 B 在PROJECT 2 中进行了更改,他没有在PROJECT 1 中进行任何更改,并且在推送数据时他也只选择了PROJECT 2 内容,但推送时出错。
ERROR :
error: failed to push some refs to http://gitbub.com
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first merge the remote changes (e.g.,
hint: 'git pull') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.`
如何允许用户 2 的推送?
【问题讨论】:
-
看起来
PROJECT1和PROJECT2都需要自己的仓库。
标签: git