Tuesday, 12 May 2015

Working with BITBUCKET


How to add repository to BITBUCKET?

For existing repository.(initialize, add all files, commit, push
1) git init
2) git remote add origin https://<username>@bitbucket.org/<repo-name>.git
3) git add .
4) git commit -m 'initial commit'
5) git push -u origin master

 For new repository. (create first file, commit, and push)
1) git init
2) git remote add origin https://<username>@bitbucket.org/<repo-name>.git
3) echo "Sambhaji" >>contributors.txt
4) git commit -m 'initial commit with contributors'
5) git push -u origin master

No comments:

Post a Comment