aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git13
1 files changed, 13 insertions, 0 deletions
diff --git a/git b/git
new file mode 100644
index 0000000..fdc9baa
--- /dev/null
+++ b/git
@@ -0,0 +1,13 @@
+---
+syntax: bash
+tags: [ vcs ]
+---
+
+# Show contents of a file
+git show revision:path/to/file
+
+# Run commands in all existing commit
+git filter-branch --tree-filter 'shell command' HEAD
+
+# Show branches and their commits
+git show-branch