I have a computer that points to two connected Git repositories. It's a web site, and the repos are on remote drives (on servers) that I have mapped in Windows. The live production site is on G:\webroot\
, and the development site is on H:\webroot\
with the live site as the source of the dev. So I make changes on Dev, test, commit, then push them to Live. I'm using SourceTree as a Git GUI. (NOTE: assume I'm getting specific terminology wrong here. I hope I'm getting the point across okay.)
Now I have a new desktop computer. Specifically, I started with a laptop, but am moving my main Git setup to a desktop. (I will continue to use the laptop for other things. If I can figure out how to also access these repos from the laptop that would be gravy.)
I've seen lots of Q/A that talks about moving the repository, and you either clone or just plain move the entire folder. But in my case, I'm not moving the repos at all, I'm just trying to get SourceTree to connect me properly to the existing ones. I did copy over the Atlassian folders from %appdata%, and that may have been my mistake -- not sure.
If I enter the path as a local repo, I get the following:
'git status' failed with code 128: fatal: detected dubious ownership of repository at " (path).
It talks about adding an exception to my Git config, but I don't really understand what that would actually be doing, or if it's the right thing to do. Looks as though it's just shutting off an error alert(?).
Any help would be appreciated. It's one of those cases where I struggle to even look it up because I don't know the right terminology to look for.