How do you init a new Mercurial project with a different username? -
normally start new mercurial project:
cd /project-directory hg init this uses username set somewhere on machine (%userprofile%\mercurial.ini)
but on occasion want initialize project different username.
is there option use hg init this?
hg init doesn't use username @ (repo starts no changesets, @ revision null). if want commit different username, use hg commit --user.
you can set username in repository's hgrc (.hg/hgrc), in global 1 — commits repository use it.
Comments
Post a Comment