| 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 (Only equivalent when is not tracked.)
|
| 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 (Requires the HisteditExtension.)
|
| git stash
| hg shelve (Requires the ShelveExtension or the AtticExtension.)
|
| git merge
| hg merge
|
| git cherry-pick
| hg graft
|
| git rebase
| hg rebase -d (Requires the RebaseExtension.)
|
| git format-patch and git send-mail
| hg email -r (Requires the PatchbombExtension.)
|
| git am
| hg mimport -m (Requires the MboxExtension and the MqExtension. Imports patches to mq.)
|
| git checkout HEAD
| hg update
|
| git log -n
| hg log --limit n
|
| git push
| hg push
|
0 Comments:
Post a Comment
<< Home