This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
haas:spring2015:common:repo [2015/01/20 12:08] – [Customizing your Settings] wedge | haas:spring2015:common:repo [2015/01/27 19:48] (current) – klockwo1 | ||
---|---|---|---|
Line 259: | Line 259: | ||
Mercurial has a help screen, that can be accessed by issuing the command: **hg help** | Mercurial has a help screen, that can be accessed by issuing the command: **hg help** | ||
+ | |||
+ | =====Bitbucket on Lab46===== | ||
+ | |||
+ | Should you be required to utilize Bitbucket, it is possible to clone your Bitbucket repository on Lab46. This will allow you to commit files to your Bitbucket repository without the use of tools such as TortoiseHg. | ||
+ | |||
+ | First, clone your repository. | ||
+ | <cli> | ||
+ | hg clone https:// | ||
+ | </ | ||
+ | cd into the repository directory that it just made | ||
+ | <cli> | ||
+ | cd cscs1320s14 | ||
+ | </ | ||
+ | |||
+ | Now, edit the hgrc file (located in .hg) | ||
+ | <cli> | ||
+ | nano .hg/hgrc | ||
+ | </ | ||
+ | |||
+ | The [paths] should already be there. Add the following info, replacing the correct information. | ||
+ | |||
+ | <cli> | ||
+ | [paths] | ||
+ | default = https:// | ||
+ | [auth] | ||
+ | bb.prefix = https:// | ||
+ | bb.username = yourusername | ||
+ | [ui] | ||
+ | username = Firstname Lastname < | ||
+ | verbose = True | ||
+ | </ | ||
+ | Save the file. | ||
+ | |||
+ | To add your files you wish to commit, run | ||
+ | <cli> | ||
+ | hg add | ||
+ | </ | ||
+ | This adds the files to the repostiory, afterwards you can use | ||
+ | <cli> | ||
+ | hg commit -m "Your commit message" | ||
+ | </ | ||
+ | to commit the files, and then run | ||
+ | <cli> | ||
+ | hg push | ||
+ | </ | ||
+ | to push it to Bitbucket |