1

Possible Duplicate:
Git equivalents of most common Mercurial commands?
Git and Mercurial - Compare and Contrast

sometimes programmers are forced to learn lots of tools, some of them are usually very similar, so how to leverage the experience of one tool and make it less painful to start with new tools? it would be very nice if there is some comparation between the operations of these tools.

i have been using git for long time, but never used hg, i have heard that hg is similar to git, so i wonder if there is kind of translation from git command to hg command?

for example what is the hg command corresponding to git clean?

if there is such kind of translation, it would make git users to start hg more easily.

Community
  • 1
  • 1
hugemeow
  • 7,777
  • 13
  • 50
  • 63
  • @EduardoCereto I don't think that one is a duplicate, though it does have a lot of good information. – Roman Sep 04 '12 at 16:08
  • @EduardoCereto what is the hg command corresponding to git clean? – hugemeow Sep 04 '12 at 16:12
  • @hugemeow To answer your question [Does Mercurial have an equivalent to git clean?](http://stackoverflow.com/questions/2760283/does-mercurial-have-an-equivalent-to-git-clean?rq=1) – Roman Sep 04 '12 at 16:20
  • @R0MANARMY what about the corresponding hg command to git clean -xf ? – hugemeow Sep 04 '12 at 16:31
  • @hugemeow Not a clue, I don't use mercurial, just happened to have found that answer on google. Perhaps if you are specifically looking for `git clean -xf` you should ask for it specifically. – Roman Sep 04 '12 at 17:23

1 Answers1

3

If you are just looking for a mapping from git commands to those in mercurial, this command equivalence table is a good place to start.

Pulkit Goyal
  • 780
  • 4
  • 20
smooth reggae
  • 2,189
  • 13
  • 14