使用git在Xcode中提交(和推送)时会出现不存在的文件

时间:2014-06-16 13:53:11

标签: ios xcode git github

我一直在努力解决这个问题,但它真的开始让我感到沮丧。

我正在开发这个iOS应用程序,它使用git进行源代码控制,我在GitHub中托管代码。 一切都很酷,直到我有一个名为“Titulación”的文件夹,其中只包含图像。 当我尝试提交时,我收到以下错误:

  

错误:pathspec'UNEVE / Graphic Assets /Titulación/ boton-documentos.png'与git已知的任何文件都不匹配。

所以我想到了,“Titulación”这个词对此有所帮助。我删除了它,并创建了一个没有书面重音但具有相同内容的新文件夹。它工作,但现在每次我尝试提交新的更改时,旧文件夹仍显示在文件视图部分下。它实际上也显示了旧图像!
这是截图:Image

该文件夹不再存在于Xcode Project Navigator中,也不存在于Finder中。我认为它可能因某种原因而被隐藏,但不,它在任何地方都不存在!

所以现在当我在代码中进行更改或添加新文件时,我必须先取消选中所有内容,然后检查实际存在的文件。
我已经做了好几天了,但由于那些不存在的图像,取消选中所有文件真的很烦人。

我试过这个:Similar problem但是没有成功:(

有没有人有解决方法呢?

提前致谢!

已更新

谢谢你trojanfoe为你快速回答。 这是整个输出:

On branch master

要提交的更改:   (使用“git reset HEAD ...”来取消演出)

new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/boton-documentos.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/boton-documentos@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/boton-titulacion-TI.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/boton-titulacion-TI@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/boton-titulacion.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/boton-titulacion@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/cerrar.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/cerrar@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/certificado-estudios.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/certificado-estudios@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/informacion.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/informacion@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/informate.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/informate@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/llamar.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/llamar@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/opcion-titulacion.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/opcion-titulacion@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/over-informacion.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/over-informacion@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/over-llamar.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/over-llamar@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/over-tramites.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/over-tramites@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/revision-estudios.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/revision-estudios@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/toma-protesta.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/toma-protesta@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/over-documentos.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/over-documentos@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/over-titulacion-TI.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/over-titulacion-TI@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/over-titulacion.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/over-titulacion@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/alto-redimiento.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/alto-redimiento@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/guia-metodologica.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/guia-metodologica@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/opciones-titulacion.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/opciones-titulacion@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/over-alto-rendimiento.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/over-alto-rendimiento@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/over-seminario.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/over-seminario@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/over-tesis-profesional.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/over-tesis-profesional@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/seminario.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/seminario@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/tesis-profesional.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/tesis-profesional@2x.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/top-titulacion.png"
new file:   "UNEVE/Graphic Assets/Titulacio\314\201n/top-titulacion@2x.png"

未提交提交的更改:   (使用“git add / rm ...”来更新将要提交的内容)   (使用“git checkout - ...”放弃工作目录中的更改)

modified:   UNEVE.xcodeproj/project.xcworkspace/xcuserdata/Thurman.xcuserdatad/UserInterfaceState.xcuserstate
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/boton-documentos.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/boton-documentos@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/boton-titulacion-TI.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/boton-titulacion-TI@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/boton-titulacion.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/boton-titulacion@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/cerrar.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/cerrar@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/certificado-estudios.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/certificado-estudios@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/informacion.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/informacion@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/informate.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/informate@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/llamar.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/llamar@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/opcion-titulacion.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/opcion-titulacion@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/over-informacion.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/over-informacion@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/over-llamar.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/over-llamar@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/over-tramites.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/over-tramites@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/revision-estudios.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/revision-estudios@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/toma-protesta.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/documentos/toma-protesta@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/over-documentos.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/over-documentos@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/over-titulacion-TI.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/over-titulacion-TI@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/over-titulacion.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/over-titulacion@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/alto-redimiento.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/alto-redimiento@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/guia-metodologica.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/guia-metodologica@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/opciones-titulacion.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/opciones-titulacion@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/over-alto-rendimiento.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/over-alto-rendimiento@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/over-seminario.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/over-seminario@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/over-tesis-profesional.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/over-tesis-profesional@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/seminario.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/seminario@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/tesis-profesional.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/titulacion/tesis-profesional@2x.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/top-titulacion.png"
deleted:    "UNEVE/Graphic Assets/Titulacio\314\201n/top-titulacion@2x.png"

未跟踪的文件:   (使用“git add ...”包含将要提交的内容)

UNEVE.xcodeproj/project.xcworkspace/xcshareddata/
UNEVE.xcodeproj/xcuserdata/Thurman.xcuserdatad/xcdebugger/

1 个答案:

答案 0 :(得分:0)

尝试使用符合UTF-8标准的文件名和目录,可能Titulación/目录正在弄乱您的存储库。

我遇到了类似的问题,很多人建议您实施解决方案featured here,但它对我没有用,如果对你有用,你可以试试。