Skip to content
Browse files

Add example user-defined commands to the manual

Inspired by GH #121, GH #65 and GH #74.
  • Loading branch information...
1 parent 5627d59 commit 91fc97d2ea3bb3f20dc876acc8315b667e05ae39 @jonas committed Mar 3, 2013
Showing with 22 additions and 0 deletions.
  1. +22 −0 manual.txt
View
22 manual.txt
@@ -164,6 +164,28 @@ following variables.
|%(prompt) |Prompt for the argument value.
|=============================================================================
+Example user-defined commands:
+
+ - Allow to amend the last commit:
+
+ bind generic + !git commit --amend
+
+ - Copy commit ID to clipboard:
+
+ bind generic 9 !@sh -c "echo -n %(commit) | xclip -selection c"
+
+ - Add/edit notes for the current commit used during a review:
+
+ bind generic T !git notes edit %(commit)
+
+ - Enter git's interactive add for fine-grained staging of file content:
+
+ bind generic I !git add -i %(file)
+
+ - Rebase current branch on top of the selected branch:
+
+ bind branch 3 !git rebase -i %(branch)
+
[[title-window]]
Title Windows
~~~~~~~~~~~~~

0 comments on commit 91fc97d

Please sign in to comment.
Something went wrong with that request. Please try again.