Moving the entire git repo directory

If you have a Git repo on Windows on c:\mydir\myrepo

, you can just move the entire directory myrepo

to say d:\blah\myrepo

?

I am assuming that the config directory is relative myrepo\.git

to the parent, so you can move the entire directory around without any problem.

+3


source to share


2 answers


The short answer is yes. If you move the entire directory, including the folder .git

, git will continue to work in the project and you should be able to continue working with it without issue.



+4


source


Yes, you can move it just fine. As long as this .git folder is enabled, git will treat it as a repository.



+1


source







All Articles