Q:

Undo: export GIT_ASKPASS=""

I'm relatively new to git/gitlab. For my school gitlab account, I was trying to setup git push to not continuously ask for my rsa passphrase by using:
export GIT_ASKPASS="<password goes here>"

It did not work, and now I'm stuck trying to push to gitlab with a refused connection. Is there an easy way out? Or do I have to setup my rsa keys all over again? Thanks in advance for helping a noob in distress.

A:

It is best at first to generate ssh keys without a passphrase.
Or you would have to deal with ssh-agent, as described in "Adding your SSH key to the ssh-agent"
ssh-keygen -t rsa -C "key for xxx access" -q -P ""

Publish your public key to your GitLab account, and it should not ask for a passphrase (provided you are using a git@gitlab.com:<username>/<reponame> ssh url, not an https one)

