如何使用无效的Windows文件名处理在Linux上提交给Git的文件? [英] How to handle files committed to Git on Linux with invalid Windows filenames?
本文介绍了如何使用无效的Windows文件名处理在Linux上提交给Git的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我提交了一些文件名,其中包含':'和''字符,这些文件在Windows上无效.当我尝试从Windows计算机上进行git pull时,会出现错误消息.
I committed some files with a name containing ':' and '"' characters, which are invalid on Windows. When I try to git pull from a Windows machine it gives me an error message.
是否可以通过Windows计算机在存储库上重命名这些文件?还是有其他解决方法?
Is there a way to rename these files on the repo from the Windows machine? Or is there any other workaround?
推荐答案
如果可以访问linux计算机,则可以对其进行重命名,对代码进行相应的更改,然后推送到存储库(带有适当的注释)
If you have an access to a linux machine you can rename it, do the according changes into the code, and push to the repository (with appropriate comment)
这篇关于如何使用无效的Windows文件名处理在Linux上提交给Git的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文