$ git remote -v
origin https://github.com/my-repo/site-web.git (fetch)
origin https://github.com/my-repo/site-web.git (push)
I have ssh set up and a shell script to run like this:
ssh -T git@github.com
git reset --hard
...
git pull
But I still get prompted for a password. I assume the remote needs to be git@github.com for the ssh to work.
I have four directories... a/
b/
c/
and d/
and all of them point to this remote. But I really only want ssh to work in a/
. I'm happy to keep using https for the others.
What do I do?