让两个不同的 git 客户端同时访问同一个本地 git 存储库是否安全?
我有一个从 bitbucket.com 克隆的本地 git 存储库,我在它上面做了很多工作。由于 eclipse 是我的 IDE,所以我使用 EGit eclipse 插件,它工作得很好,尤其是在我重构时,到目前为止我对 EGit 很满意。
今天我注意到 Atlassian 有一个很好的免费 GUI shell,名为 SourceTree http://www.sourcetreeapp.com/ 和我想知道如果同时从 EGit 和 SourceTree 访问我的本地 git 存储库是否存在任何问题。例如,如果我从 Egit 启动提交,然后同时从 SourceTree 启动提交,会发生什么? git 如何处理本地存储库的并发访问?
I have a local git repo cloned from bitbucket.com I do a lot of work on it. Since eclipse is my IDE I am using EGit eclipse plugin which works great especially when i am refactoring, I am happy with EGit so far.
Today I notice that Atlassian has a nice free GUI shell called SourceTree http://www.sourcetreeapp.com/ and I am wondering if there are any issues if my local git repo is being accessed from both EGit and SourceTree at the same time. For example what happens if I start a commit from Egit and then at the same time start a comit from SourceTree? How does git deal with concurrent access of a local repo?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在本地存储库上的 Gitbox 和命令行 Git 之间来回切换,没有任何问题。重要的是 GUI 刷新得足够频繁,以至于它不会“落后于”磁盘上的实际存储库。
I bounce back and forth between Gitbox and command-line Git on my local repos with no problems. The important thing is that the GUI refreshes often enough that it doesn't get "behind" the actual repo on disk.
是的,只要你从中拉出来就可以了。中央仓库,如果不是裸露的,应该从其他仓库中拉取。您希望避免将任何内容推送到非裸存储库。
Yes it will be fine as long as you only pull from it. The central repo, if not bare, should pull from the others. You want to avoid pushing anything to a non-bare repo.