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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -