Home > Enterprise >  Do I need to run git init everytime I change the path of my local files?
Do I need to run git init everytime I change the path of my local files?

Time:03-05

For instance, I ran git init, added its remote and pulled the files and pushed my local changes to the same remote, then I decided to change the local path of the files on my computer?

CodePudding user response:

You don't need to do git init again as long as you copy the hidden .git/ directory in the root of your project.

See how to show hidden files and folder on Windows, then copy .git/ into your new local path.

  •  Tags:  
  • git
  • Related