Hg

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
Line 4: Line 4:
 
If you create a local repository, and later want to push it to a remote repo, then you'll need to setup the default-push target.<br>
 
If you create a local repository, and later want to push it to a remote repo, then you'll need to setup the default-push target.<br>
 
Put the following in your <code>./.hg/hgrc</code> file:
 
Put the following in your <code>./.hg/hgrc</code> file:
<code lang="ini">
+
<source lang="ini">
 
[paths]
 
[paths]
 
default = ${REMOTE_REPO}
 
default = ${REMOTE_REPO}
</code>
+
</source>

Revision as of 09:39, 29 July 2014

My Mercurial cheat sheet! See also: git and svn

Default Push

If you create a local repository, and later want to push it to a remote repo, then you'll need to setup the default-push target.
Put the following in your ./.hg/hgrc file:

[paths]
default = ${REMOTE_REPO}
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox