Every time I want to
pull from the terminal (in Linux) I have to enter a password. How do I remove this so that it pulls and/or pushes without the password?
Generate a private/public key pair for password-less authentication.
For Linux, your keys are stored in
If you already have files in
~/.ssh that's named
id_rsa.pub, then you already have a key pair. Append the contents of your public key (that's
id_rsa.pub) to the Git repository's ~/.ssh/authorized_keys file.
$ scp ~/.ssh/id_rsa.pub email@example.com:id_rsa.tmp $ ssh firstname.lastname@example.org $ cat id_rsa.tmp >> .ssh/authorized_keys
If you don't have the key pair, generate one with
$ ssh-keygen -t rsa
Read this for further instructions: http://inchoo.net/tools-frameworks/how-to-generate-ssh-keys-for-git-authorization/
git config credential.helper store
This will store your credentials in a folder inside root. You need to run git pull/push after this command and give the user name/pwd for the first time. Post this it will not prompt for user/pwd. Details at https://git-scm.com/docs/git-credential-store
You can also just change your passphrase and replace it by an empty string :
I had created a new branch and after that when I pulling, I had to enter the user name and password. Then I resolve the problem re-cloning the branch with ssh address (which is on the relevant repository site).
git clone email@example.com:sshare/GLE.git