Selective commit
git commit --patch [-p]
bzr shelve && bzr commit; bzr unshelve
# Select changes not to commit
for shelve
hg record
Amend commit
git commit --amend
bzr uncommit && bzr commit
# Log entry etc are lost; using gcommit or
qcommit will populate the old log entry
Author
- Git: name <email>; email must not be blank
- Bazaar: name <email>. Uses some sort of check of formatting of
email, otherwise it is just treated as part of name.
- Mercurial:
~/.hgrc
: [ui]: username = . . .
Remote repositories
- Git: SSH:
USER@HOST:PATH
or “ssh:” URL protocol
- Bazaar: “bzr+ssh:” URL protocol
- Mercurial: “ssh:” URL protocol
Clone remote repository
git clone [-o origin] USER@HOST:PATH
bzr branch [--standalone] bzr+ssh://USER@HOST/~/PATH
Import remote changes
git fetch REPOSITORY --all | SOURCE-REVISION:LOCAL-BRANCH
hg pull URL
GUI
gitk --all HEAD -n10000
bzr qlog
bzr visualise
- Tortoise Hg (QT)
hg view
# Requires enabling hgk extension
hgview
# QT