Using git in bitbucket without password
Look mom, without hands...
First, change this in your .git/config:
old url:
url = https://USER@bitbucket.org/hispamedios/PROJECT.git
new one:
url = ssh://USER.bitbucket.org/hispamedios/PROJECT.git
Edit your .ssh/config, in your local directory, and add this:
- Read more about Using git in bitbucket without password
- Log in or register to post comments
private git repositories in bitbucket
Let me got directly to the point. The bitbucket documentation is wrong, on the begining you are just suposed to do a git remote add origin
in the directory which you want to commit. But this will not work:
fatal: Not a git repository (or any of the parent directories): .git
Solution? Init the repository:
git init
git remote add origin https://ACCOUNT@bitbucket.org/ACCOUNT/REPOSITORY.git
- Read more about private git repositories in bitbucket
- Log in or register to post comments