Somewhat of a noob question but everyday at work when I open git bash I have to start the ssh-agent daemon and I have to add my ssh-private key to the user-agent so that Github knows who I am.
- eval "$(ssh-agent -s)"
- ssh-add ~/.ssh/id_rsa
If I dont do this I cannot pull/push to github.
It gets a little annoying to have to do this everyday, is there a way to add it permanently?
.bash_profile
or.bashrc
. I don't know exactly what kind of environment Git bash will run or run in, so there might be something more complicated you need to do to avoid running multiple instances ofssh-agent
. – Disjoin