Using git in bitbucket without password

Posted by alexmoreno on Sun, 10/02/2013 - 13:53

Look mom, without hands...

First, change this in your .git/config:

old url:

 url =

new one:

url = ssh://


Edit your .ssh/config, in your local directory, and add this:

 cat .ssh/config
User git
IdentityFile ~/.ssh/bitbucket

The last line is important, so you are indicating your identity file. Now create this file:

ssh-keygen -f .ssh/bitbucket -C "YOURUSER"

And now test it. Go to your local repository, do smart changes in your code and commit them or simply do a "git pull". It should not ask you for password anymore.