开发者

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

开发者 https://www.devze.com 2023-03-04 22:00 出处:网络
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

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://p开发者_如何转开发ath/to/repo


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消