aboutsummaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-09-14 13:29:39 +0800
committerGuangxiong Lin <[email protected]>2022-09-14 13:29:39 +0800
commit2cb5e8288f9135aef85d657710e6be1823376600 (patch)
tree9802cccbdd79e45b8471ced2bdc716d563d62420 /git
downloadcheatsheet-2cb5e8288f9135aef85d657710e6be1823376600.tar.gz
cheatsheet-2cb5e8288f9135aef85d657710e6be1823376600.tar.bz2
cheatsheet-2cb5e8288f9135aef85d657710e6be1823376600.zip
First commit
Diffstat (limited to 'git')
-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