Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git存储库中的Dropbox冲突备份文件_Git_Dropbox_Sanity Check - Fatal编程技术网

Git存储库中的Dropbox冲突备份文件

Git存储库中的Dropbox冲突备份文件,git,dropbox,sanity-check,Git,Dropbox,Sanity Check,我在Dropbox中保留了一些Git存储库,因为不同计算机之间的Dropbox同步出现问题(computerX,computerB),我认为,存在文件 ./.git/ORIG_HEAD (computerX's conflicted copy 2015-05-15) ./.git/index (computerX's conflicted copy 2015-05-19) ./.git/COMMIT_EDITMSG (computerX's conflicted copy 2015-05-15)

我在Dropbox中保留了一些Git存储库,因为不同计算机之间的Dropbox同步出现问题(
computerX
computerB
),我认为,存在文件

./.git/ORIG_HEAD (computerX's conflicted copy 2015-05-15)
./.git/index (computerX's conflicted copy 2015-05-19)
./.git/COMMIT_EDITMSG (computerX's conflicted copy 2015-05-15)
./.git/FETCH_HEAD (computerB's conflicted copy 2015-05-18)
./.git/index (computerX's conflicted copy 2015-05-15)
./.git/index (computerB's conflicted copy 2015-05-18)
./.git/refs/heads/master (computerX's conflicted copy 2015-05-15)
./.git/refs/remotes/origin/master (computerX's conflicted copy 2015-05-15)
./.git/logs/HEAD (computerB's conflicted copy 2015-05-18)
./.git/logs/HEAD (computerX's conflicted copy 2015-05-15)
./.git/logs/refs/heads/master (computerX's conflicted copy 2015-05-15)
./.git/logs/refs/heads/master (computerB's conflicted copy 2015-05-18)
./.git/logs/refs/remotes/origin/master (computerX's conflicted copy 2015-05-15)
./.git/logs/refs/remotes/origin/master (computerB's conflicted copy 2015-05-18)

我有点担心只是简单地删除它们。有人对如何在删除这些文件之前进行健全检查提出了建议吗?

事实上,我不会删除任何文件。因为这些文件对于您的git存储库来说是强制性的。你可以做的是:如果你还没有推送任何本地提交,那么你的repo是干净的-你可以删除整个repo并再次克隆它。只有文件名中没有
(xxx的冲突副本yyy)
的文件版本是强制性的。是的,你只发布了这些文件,还是我出错了/索引、/ORIG_HEAD、/refs/*都是git的必需文件。除了我发布的文件外,还有其他文件的文件名没有
(xxx的冲突副本yyy)
。好的,但我坚持我的第一种方法。