`git checkout` 错误:无效路径 ‘app/code/Catwalk/Producteditor/etc/adminhtml/routes.xml’

huangapple go评论128阅读模式
英文:

git checkout error: invalid path 'app/code/Catwalk/Producteditor/etc/adminhtml/routes.xml '

问题

我在我的Windows机器上克隆了一个存储库。克隆成功,但在检出过程中遇到了一个文件路径错误,末尾有空格。

git checkout
错误:无效路径 'app/code/Catwalk/Producteditor/etc/adminhtml/routes.xml'
英文:

I have cloned a repo in my windows machine. Clone is succeseded by during checkout it through a file path error with empty space at the end.

git checkout
error: invalid path 'app/code/Catwalk/Producteditor/etc/adminhtml/routes.xml '

答案1

得分: 3

'app/code/Catwalk/Producteditor/etc/adminhtml/routes.xml'
^^^

英文:
'app/code/Catwalk/Producteditor/etc/adminhtml/routes.xml '
                                                        ^^^

You might need to rename the file on GitHub first (assuming this repository is cloned from Github) before being able to check it out locally: the trailing space to routes.xml means it cannot be created on a Windows file system.

See "GitHub / Renaming a file".

huangapple
  • 本文由 发表于 2023年4月11日 15:12:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/75983294.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定