Git vs Mercurial
Git | Mercurial |
---|---|
git pull | hg pull -u |
git fetch | hg pull |
git reset --hard | hg update -C |
git revert | hg backout |
git add | hg add |
git add | Not necessary in Mercurial. |
git reset | Not necessary in Mercurial. |
git add -i | hg record |
git commit -a | hg commit |
git commit --amend | hg commit --amend |
git blame | hg blame or hg annotate |
git blame -C | (closest equivalent): hg grep --all |
git bisect | hg bisect |
git rebase --interactive | hg histedit |
git stash | hg shelve (Requires the ShelveExtension or the AtticExtension.) |
git merge | hg merge |
git cherry-pick | hg graft |
git rebase | hg rebase -d |
git format-patch | hg email -r |
git am | hg mimport -m |
git checkout HEAD | hg update |
git log -n | hg log --limit n |
git push | hg push |
0 Comments:
Post a Comment
<< Home