我一直有问题与我的git repos deleting all files on commit之一。git多个索引
我看了看项目的.git目录,发现了一串索引。检查出来:
$ ls .git
COMMIT_EDITMSG index (from Niflheimr - 2)
FETCH_HEAD index (from Niflheimr - 3)
HEAD index (from Niflheimr - 4)
ORIG_HEAD index (from Niflheimr - 5)
config index (from Niflheimr - 6)
description index (from Niflheimr - 7)
github-mac-index index (from Niflheimr - 8)
hooks index (from Niflheimr - 9)
index (from Niflheimr - 10) index (from Niflheimr)
index (from Niflheimr - 11) info
index (from Niflheimr - 12) logs
index (from Niflheimr - 13) objects
index (from Niflheimr - 14) refs
index (from Niflheimr - 15) sequencer
index (from Niflheimr - 16)
我认为他们是坏的,他们应该消失。我不确定Gart的方式是如何治愈这种疾病,以及我将来可以做些什么来防止这种情况发生。
你使用普通的'git'还是一些包装器,比如Mac的GitHub? – 2012-04-12 04:31:10
我一直在使用'git'和Github for Mac。两者都是最新版本,但我认为在我的使用中可能会有冲突。如果这是问题,我会放弃包装,但我想解决回购问题。 – 2012-04-12 04:57:10
您没有索引(简单文件称为索引)的事实完全解释了为什么提交会进行提交以删除所有受控文件。看起来你需要防止其他软件破坏git的内部结构。 – 2012-04-12 05:41:07