我将我的回购保存在Dropbox中,有一天(见下面的日期)它疯了.现在,每当我尝试自动填充分支名称时,我都会收到这些警告
warning: ignoring ref with broken name refs/heads/develop (MacBook Pro's conflicted copy 2015-02-28)
warning: ignoring ref with broken name refs/heads/master (MacBook Pro's conflicted copy 2015-02-28)
warning: ignoring ref with broken name refs/remotes/origin/develop (MacBook Pro's conflicted copy 2015-02-28)
warning: ignoring ref with broken name refs/remotes/origin/master (MacBook Pro's conflicted copy 2015-02-28)
warning: ignoring ref with broken name refs/remotes/production/master (MacBook Pro's conflicted copy 2015-02-28)
Run Code Online (Sandbox Code Playgroud)
我该如何修复这些警告?
注意:对于所有重复触发快乐的人 - 这不是重复!我只想删除上面的引用以停止获取警告.git repo完好无损
我的工作git存储库已损坏,它会丢失其中的所有文件,即
$ git log fatal: bad default revision 'HEAD'
$ git status ... told me that all the files are new
但是.git目录确实包含我的对象.
$ du -sh .git 34M .git
$ git count-objects 4151 objects, 32692 kilobytes
$ git --version git version 1.6.0.4
我记得在它出错之前做的最后一件事是在NFS挂载的服务器上创建(clone --mirror)备份存储库.但是,克隆的备份存储库以相同的方式被破坏.
如何恢复我的存储库?