aboutsummaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-11-14 14:01:19 +0800
committerGuangxiong Lin <[email protected]>2022-11-14 14:01:19 +0800
commit4822ee9ec2347a33841d4ed5570152aa2beb1edc (patch)
tree428354a4bedeede94b5c20e03827ca8469f2140d /git
parent996b362ce71e9f39c5c8fe7fff002e51567448c3 (diff)
downloadcheatsheet-4822ee9ec2347a33841d4ed5570152aa2beb1edc.tar.gz
cheatsheet-4822ee9ec2347a33841d4ed5570152aa2beb1edc.tar.bz2
cheatsheet-4822ee9ec2347a33841d4ed5570152aa2beb1edc.zip
Add git archiveHEADmaster
Diffstat (limited to 'git')
-rw-r--r--git3
1 files changed, 3 insertions, 0 deletions
diff --git a/git b/git
index 8b9cf0a..35c7184 100644
--- a/git
+++ b/git
@@ -17,3 +17,6 @@ git filter-branch --tree-filter 'shell command' HEAD
# Show branches and their commits
git show-branch
+
+# export to zip
+git archive --format=zip --output path/to/file <object>