Using mercurial at BitBucket, a really short introduction
Posted 07-10-2017 at 05:58 PM by rouvas
A really short introduction, just to get you started.
Create a project from scratch based on a BitBucket template
Set up Mercurial on your machine if you haven't already.
Create your first file, commit, and push
Work with an existing project
Already have a Mercurial repository on your computer? Let's push it up to Bitbucket.
Edit this repository's .hg/hgrc to add your new repository
Create a project from scratch based on a BitBucket template
Set up Mercurial on your machine if you haven't already.
Code:
mkdir /path/to/your/project cd /path/to/your/project hg clone https://user@bitbucket.org/user/project-template
Code:
echo "user NA" >> contributors.txt hg add contributors.txt hg commit -m "Initial commit with contributors" hg push https://user@bitbucket.org/user/project-template
Already have a Mercurial repository on your computer? Let's push it up to Bitbucket.
Code:
cd /path/to/my/repo hg push https://user@bitbucket.org/user/project2
Total Comments 0