Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I assign an "alias" to a repository URL in mercurial/kiln?

I keep all my personal projects on my Kiln account and I also have a bitbucket account where I push repositories when I need to share them with people. Is there some way for me to setup an alias for a repo URL so I can do something like

hg push kiln

or

hg push bitbucket

instead of typing in the entire URL each time: hg push https://path/to/repo

like image 242
Pete Avatar asked May 10 '11 02:05

Pete


1 Answers

Yes, you can do this in your repo's hgrc file using the paths section.

[paths]
default = https://path/to/repo
kiln = https://path/to/kiln
bitbucket = https://path/to/bitbucket

If you create new repos often, you can also add this to your ~/.hgrc file.

like image 102
Mark Lavin Avatar answered Oct 11 '22 17:10

Mark Lavin