LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > rouvas
User Name
Password

Notices


Rate this Entry

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.

Code:
mkdir /path/to/your/project
cd /path/to/your/project
hg clone https://user@bitbucket.org/user/project-template
Create your first file, commit, and push


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
Work with an existing project

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
Edit this repository's .hg/hgrc to add your new repository
Posted in Uncategorized
Views 1853 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:01 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration