ulu
ulu

Reputation: 6092

Can't git checkout after moving a folder

I have created a git repo in a folder that had spaces and some non-ascii symbols in its name. Bad idea, I know, but I thought it's 2011 and mature programs can tolerate such things. Never had any problems with it btw. However, I decided to move it to a more proper folder. I also created a new branch, and started working on it. And, it's got a submodule.

Now, when I try switching back to master (git checkout master), it says,

fatal: Not a git repository: F:/������ �����/Visual Studio 2008/Projects/OpenSource/Fubu/fubumvc/.git/modules/buildsupport

How do I fix it?

Upvotes: 4

Views: 1434

Answers (1)

ulu
ulu

Reputation: 6092

There are two text files per submodule that need to be edited:

.git\modules\<module>\config
<module>\.git

Where <module> is the name of a submodule.

Upvotes: 10

Related Questions