Last Updated: July 13, 2017
·
18.8K
· jaymabazza

No password git push on bitbucket

This command will generate new private and publik key pair.

$> ssh-keygen -t rsa 

If you already have one, just open ~/.ssh/id_rsa.pub (location depends on OS)

$> cat ~/.ssh/id_rsa.pub

copy all the contents. open http://www.bitbucket.org/account/user/your-username/ssh-keys/. It should be under Manage Account > SSH Keys

Picture

click on Add Key, then paste your public key details.

remember to use the "SSH" version before cloning. or if you're already using HTTPS, just edit git/config then replace the URL.

$> vim .git/config

3 Responses
Add your response

I learned git about a month ago and have typed my password a few hundred times since. Thanks a ton for this. I should have googled a while ago I guess.

over 1 year ago ·

no worries chris. happy gitting :)

over 1 year ago ·

Clear, simple and effective. Thanks!

over 1 year ago ·