Just installed git on Windows. I set the GIT_DIR variable to be c:\\git\\ and verified that this environment variable is maintained by cygwin (i.e. echo $GIT_DIR is what it
I had this issue, because .git/config contained worktree = D:/git-repositories/OldName. I just changed it into worktree = D:/git-repositories/NewName
.git/config
worktree = D:/git-repositories/OldName
worktree = D:/git-repositories/NewName
I discovered that, because I used git gui, which showed a more detailed error message: