多个Git客户端可以在同一个存储库上使用吗? [英] Can multiple Git clients be used on the same repository?
问题描述
我目前正在使用Windows开发机器上的TortoiseGit。我的存储库位于BitBucket上。最近我一直在看其他的Git客户端,因为我发现TortoiseGit有点混乱。
由于Git信息和元数据存储在 .git
文件夹中,我想知道是否可以使用其他Git我当前分支上的客户。如果可能的话,是否有这样做的缺点?
你可以切换到不同的客户端,比如说你使用的是命令行昨天和TortoiseGit今天?当然,为什么不呢。可能在某处存在(或者将会是)存储不同的东西的客户端,而且存在一些问题,但是烟雾检查(又名相当于 git log
并检查你提交的所有提交内容)就足够了。
但请自己帮忙,不要同时运行。尝试使用IDE插件之前关闭所有TortoiseGit实例。至少当涉及到RW操作时(RO通常是安全的)。虽然最初的 git
二进制文件对于并发访问是安全的,但我不会假设它是关于其他任何实现的。最有可能它不会伤害你,但为什么冒险摆在首位?
I currently am using TortoiseGit from my Windows development machine. My repository is located on BitBucket. Recently I have been looking at other Git clients as I find TortoiseGit a bit confusing.
Since Git information and meta-data is stored in .git
folders I was wondering if I can use other Git clients on my current branch. If possible are there any disadvantages to doing this?
Can you switch to a different client, say you were using command-line yesterday and TortoiseGit today? Sure, why not. Possibly somewhere there is (or maybe will be) a client that stores things differently and than you'd have some problems, but a smoke-check (aka doing equivalent of git log
and checking that all your commits are there) should be enough.
But do yourself a favor and don't run both at the same time. Close all TortoiseGit instances before attempting your IDE plugin. At least when it comes to RW operations (RO are generally safe). While the original git
binary is safe for concurrent access, I won't assume it about every other implementation in the wild. Most probably it won't harm you, but why take chances in the first place?
这篇关于多个Git客户端可以在同一个存储库上使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!