GitHub & BitBucket | convert repo from HTTPS to SSH
mouse 232 · person cloud · link
Last update
2018-07-25
2018
07-25
« — »

Add you SSH public key to your account:

Then update the url setting on [remote "origin"] section in the .git/config file of your project :

1
2
3
4
5
# GitHub
url = ssh://git@github.com/USERNAME/PRJ_NAME.git

# BitBucket
url = ssh://git@bitbucket.org/USERNAME/PRJ_NAME.git

Source: GitHub, BitBucket