Forum Moderators: open

Message Too Old, No Replies

Git vs Mercurial: Do You to Install Git for Mercurial

Git and Mercurial

         

arnk

5:32 pm on Jun 19, 2017 (gmt 0)

5+ Year Member



It was my understanding that you could use either Git OR Mercurial as a repository for version control. So I chose Mercurial and all was good until I was following the instructions for installing it....Step 2: Update your configuration file > When you install Git, it comes with a configuration file that you update with your personal settings from a command window.. For the full tutorial see: [confluence.atlassian.com...]

So why would Git come into play during a Mercurial install?

Kind regards

[edited by: ergophobe at 11:31 pm (utc) on Jun 19, 2017]
[edit reason] Fixed URL [/edit]

phranque

11:32 pm on Jun 19, 2017 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



perhaps this would be a good place to start...

DVCS workflows for Bitbucket Cloud - Atlassian Documentation:
https://confluence.atlassian.com/get-started-with-bitbucket/dvcs-workflows-for-bitbucket-cloud-860009652.html [confluence.atlassian.com]

ergophobe

11:35 pm on Jun 19, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I think it might be a typo. Git shouldn't create a .hgrc file, but Mercurial would.

They are either trying to say
"Hey, if you installed git, this step was done for you, but with Mercurial, you might have to do it yourself."

or

"If you already have git installed, you might have this file and so it might conflict"

or

"If you already have git installed, you understand the concept here: you're going to need to add your personal settings so you can make commits and such."

Anyway, I would just follow the instructions
- check to see if you have the file.
- if you don't, create it and add the username setting

Quick tip. If you need to create a "dot" file on Windows, it won't let you. You have to add another dot. So rather than filename ".hgrc" you name the file ".hgrc." and the last dot disappears and you have the name you need.

arnk

2:15 pm on Jun 20, 2017 (gmt 0)

5+ Year Member



Okay thanks, on a side note....what does Hg stand for? Such as TortoiseHg.......

phranque

8:20 pm on Jun 20, 2017 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hg is the symbol for the element Mercury.