Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.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添加、删除,相关位置也没有文件。我该怎么办?_Git_Github_Bitbucket - Fatal编程技术网

无法git添加、删除,相关位置也没有文件。我该怎么办?

无法git添加、删除,相关位置也没有文件。我该怎么办?,git,github,bitbucket,Git,Github,Bitbucket,文件未显示在相关位置 Unmerged paths: # (use "git add/rm <file>..." as appropriate to mark resolution) # # added by them: app/etc/ local.xml~ # 未合并的路径: #(酌情使用“git add/rm…”标记分辨率) # #由他们添加:app/etc/local.xml~ # 您是否注意到文件名开头有空格?执行以下操作之一: git添加“ap

文件未显示在相关位置

Unmerged paths:
#   (use "git add/rm <file>..." as appropriate to mark resolution)
#
#       added by them:      app/etc/ local.xml~
#
未合并的路径:
#(酌情使用“git add/rm…”标记分辨率)
#
#由他们添加:app/etc/local.xml~
#

您是否注意到文件名开头有空格?执行以下操作之一:

git添加“app/etc/local.xml~”


git-rm“app/etc/local.xml~”

试试下面提供的解决方案,你确定这个命令“git-rm--cached../public/images/originals/dog.ai”是安全的吗?我的数据在git文件夹中,不受影响。URL将被你自己的URL替换,只需阅读关于git-rm--cachedOkay的内容。谢谢,我会检查它。是否可以从git索引中删除文件?我想这个文件保存在git索引中。你怎么想的。那里不存在可能的文件副本。我查过了。