1

When I installed git, I made a mistake to set c:/users/jack as the root directory. But there're many unwanted folders under jack . So When I open git-bash, the directory is under jack. And when I open git-gui, there are thousands of unrelated files in the sidebar which I can't do anything to change it. So I want to create a folder called code as the root directory of git. Is there any way to achieve it without uninstalling git?(btw, I'm using windows)

1 Answers1

1

You can simply delete the c:/users/jack/.git folder and inside your code folder, initialize git using git init command

Ahmed HENTETI
  • 1,108
  • 8
  • 18