Created
October 26, 2011 11:48
-
-
Save puzza007/1316120 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add ssh key from your machine to bitbucket keys here https://bitbucket.org/account/ | |
puzza@imac:~/src/test$ cat ~/.ssh/id_rsa.pub | |
ssh-rsa XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX== [email protected] | |
# push an already existing rep | |
puzza@imac:~/src/test$ git init | |
Initialized empty Git repository in /Users/puzza/src/test/.git/ | |
puzza@imac:~/src/test$ touch foo | |
puzza@imac:~/src/test$ git add . | |
puzza@imac:~/src/test$ git commit -m 'import an empty file' | |
[master (root-commit) a8bae53] import an empty file | |
0 files changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
puzza@imac:~/src/test$ git remote add bitbucket [email protected]:puzza007/test.git | |
puzza@imac:~/src/test$ git push bitbucket master | |
The authenticity of host 'bitbucket.org (207.223.240.182)' can't be established. | |
RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40. | |
Are you sure you want to continue connecting (yes/no)? yes | |
Warning: Permanently added 'bitbucket.org,207.223.240.182' (RSA) to the list of known hosts. | |
Counting objects: 3, done. | |
Writing objects: 100% (3/3), 212 bytes, done. | |
Total 3 (delta 0), reused 0 (delta 0) | |
remote: bb/acl: puzza007 is allowed. accepted payload. | |
To [email protected]:puzza007/test.git | |
* [new branch] master -> master | |
puzza@imac:~/src/test$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment