Advanced Commands
Table explanation
- Commands in green rectangles that are not surrounded by are at an interactive command-line prompt. Text in is an explanation of where to find equivalent functionality.
- command aliases: create custom aliases for specific commands or combination thereof
- lock/unlock: exclusively lock a file to prevent others from editing it
- shelve/unshelve: temporarily set aside part or all of the changes in the working directory
- rollback: remove a patch/revision from history
- cherry-picking: move only some revisions from a branch to another one (instead of merging the branches)
- bisect: binary search of source history for a change that introduced or fixed a regression
- incoming/outgoing: query the differences between the local repository and a remote one (the patches that would be fetched/sent on a pull/push)
- grep: search repository for lines matching a pattern
- record: include only some changes to a file in a commit and not others
Software | command aliases | lock/unlock | shelve/unshelve | rollback | cherry-picking | bisect | incoming/outgoing | grep | record |
---|---|---|---|---|---|---|---|---|---|
AccuRev SCM | No | enable file locking | keep / co | revert / purge | patch | No | No | No | Unknown |
Bazaar | No | shelve/unshelve | uncommit | merge (non-tracking) | bisect (bisect plugin) | missing --theirs-only/missing --mine-only | grep (grep plugin) | Unknown | |
CVSNT | edit -x/unedit | No | admin -o | yes | annotate | No | no | No | |
Darcs | No | No | revert/unrevert | unrecord | yes | trackdown | pull/push --dry-run | No | record |
Fossil | No | No | stash pop/stash apply | merge --rollback | merge --cherrypick | bisect | No | search | No |
Git | No | stash/stash pop | reset HEAD^ | cherry-pick | bisect | cherry | grep | add -p | |
Mercurial | No | shelve/unshelve (bundled extension) | rollback | graft(core) or transplant(bundled extension) | bisect | incoming/outgoing | grep | record (bundled extension) | |
Monotone | No | No | kill_rev_locally | pluck | bisect | No | No | Unknown | |
Perforce | via broker | lock/unlock | shelve/unshelve | obliterate | integ | Unknown | Unknown | grep | Unknown |
SVK | No | No | No | No | svk merge | No | status | No | No |
Subversion | No | lock/unlock | No | No | svnmerge cherry-picking | Third party tool | status -u | No | No |
Surround SCM | No | checkout | shelf | rollback | duplicatechanges | No | diff | No | No |
Team Foundation Server | Yes | lock/unlock | shelve/unshelve | Unknown | Unknown | No | Unknown | Unknown | No |
Veracity | No | lock/unlock | No | No | No | No | incoming/outgoing | No | No |
Software | command aliases | lock/unlock | shelve (stash)/unshelve | rollback | cherry-picking | bisect | incoming/outgoing | grep | record |
Read more about this topic: Comparison Of Revision Control Software
Famous quotes containing the words advanced and/or commands:
“In the United States all business not transacted over the telephone is accomplished in conjunction with alcohol or food, often under conditions of advanced intoxication. This is a fact of the utmost importance for the visitor of limited funds ... for it means that the most expensive restaurants are, with rare exceptions, the worst.”
—John Kenneth Galbraith (b. 1908)
“How often we read that the enemy occupied a position which commanded the old, and so the fort was evacuated! Have not the school-house and the printing-press occupied a position which commands such a fort as this?”
—Henry David Thoreau (18171862)