You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following this answer in case you want to do this manually (i.e. not using git init --separate-git-dir). I'll assume that in the directory D:\projectfolder there are your files and a .git folder. You want to move that folder to D:\gitfolder
In D:\projectfolder create a file (not folder) named .git with this content:
gitdir: D:\gitfolder\.git
In folder D:\gitfolder\.git edit the config file with this line under [core]:
worktree = D:\projectfolder
You can also do this with this command git config core.worktree D:\projectfolder.