Bitbucket is a good alternate to Github which provides free unlimited private hosting upto 5 collaborators. It uses Mercurial which is DVCS.
I prefer SSH over HTTP to access work on my repository. The steps to setup are as follows:
I prefer SSH over HTTP to access work on my repository. The steps to setup are as follows:
- Signup on Bitbucket (Obviously)
- Create a repository after login using Repository -> Create New Repository
- Install mercurial on your local system
- Create the Mercurial Configuration File
- vi ~/.hgrc
- Create SSH Key if not present on your local system using the following steps
- ssh-keygen
- The generated key files are stored under ~/.ssh
- Upload the ~/.ssh/id_rsa.pub file to Bitbucket under Account -> SSH Keys
- Setup the Key in Ubuntu
- Now clone the repository from remote server
- To add and commit code use the following commands
sudo apt-get install mercurial
[ui] editor = vi username = FIRST_NAME LAST_NAME <email>
chmod 644 ~/.ssh/id_rsa.pub ssh-agent bash ssh-add
hg clone ssh://hg@bitbucket.org/<username>/<repository>
hg add <file/folder> hg commit -m '<commit message>' hg push
- A very good reference for basic Mercurial is
No comments:
Post a Comment