简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM