Reputation: 10474
I have created a repository on Linux where one folder name contains a colon (':'). Now I want to clone
it to a Windows system. Because a colon is not allowed in path names on Windows I get the message:
error: Invalid path (...)
I don't have access to a Linux system now. Is there a possibility to rename the folder via the GitHub web interface?
Note: I am the only one using this repository.
Upvotes: 3
Views: 3315
Reputation: 1323413
You can move a file in a new location from GitHub API, which isn't practical if you have a lot of them.
An alternative way is to use docker/machine (see get started) to
docker run -it --rm
this new image, git mv
, add, commit and push back.Upvotes: 3
Reputation: 14535
I don't think it's possible to rename directory, since Git doesn't operate directories. But you can try to move all files from that directory to a new one (empty directory won't be created by git clone
). How to move file is described in the Github documentation.
Upvotes: 2