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
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
Written by jay mabazza
Related protips
3 Responses
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ssh
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#