我在 Linux 上创建了一个存储库,其中一个文件夹名称包含一个冒号 (':')。现在我想将它克隆
到Windows系统。因为 Windows 上的路径名中不允许使用冒号,所以我收到消息:
error: Invalid path (...)
我现在无法访问 Linux 系统。是否可以通过 GitHub 网络界面重命名文件夹?
注意:我是唯一一个使用这个存储库的人。
最佳答案
您可以 move a file in a new location from GitHub API ,如果您有很多,这将不切实际。
另一种方法是使用 docker/machine (参见 get started)到
- pull 任何 ubuntu 镜像,
- make a Dockerfile installing git ,
docker run -it --rm
这个新镜像,- 在那里克隆你的仓库,
- 执行
git mv
,添加、提交并返回。
关于git - 在 GitHub 上重命名文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32156363/