From 2cb5e8288f9135aef85d657710e6be1823376600 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 14 Sep 2022 13:29:39 +0800 Subject: First commit --- git | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 git 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 -- cgit v1.2.3