_plhoa
Last Updated: July 13, 2017
·
10.57K
· 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

15267

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 ·
15977

no worries chris. happy gitting :)

over 1 year ago ·
29096

Clear, simple and effective. Thanks!

over 1 year ago ·