I use git bash locally working with multiple remote bare repositories (ssh with public key auth). Every day, I am having to re-install git if I want to work with my remote repositories.
What happens:
When I do git pull, fetch, push, or anything relating to a remote, I get a "fatal: Not a git repository" error. When I uninstall git and reinstall (https://msysgit.github.io/), it works fine until the next time I restart my computer.
What I know:
I know that for some reason, Git bash doesn't like to prompt for passwords. When I have tried working with a remote ssh repository, I get the same "fatal: Not a git repository" error unless I set up public key authentication.
I have never had any issues sshing into the remote server (ssh @).
I spoke to my server provider when I was initially dealing with this issue. The guy I was working with noticed that when I connected using an ssh command (ssh @) he would see a message about a user connecting via OpenSSH. When I would run a git command that used ssh (e.g. git clone ssh://@) he would see that a user tried to connect via PUTTY and that the connection ultimately failed.
My Question:
Has anyone else dealt with this issue? Is there something I can do so I don't have to reinstall git every time I restart my computer?
GIT_SSHandPLINK_PROTOCOLset to in the git bash environment when this works and when it doesn't?GIT_SSHandPLINK_PROTOCOLare set to? I went into advanced system settings and looked at environment variables, but I see neither of those listed.