/snap/gh/502/usr/share/doc/git/contrib/examples
NameSizeModeActions
builtin-fetch--tool.c130560644editdlrm
git-am.sh243780644editdlrm
git-checkout.sh76210644editdlrm
git-clean.sh22610644editdlrm
git-clone.sh127110644editdlrm
git-commit.sh143920644editdlrm
git-difftool.perl127580644editdlrm
git-fetch.sh91150644editdlrm
git-gc.sh5940644editdlrm
git-log.sh3720644editdlrm
git-ls-remote.sh25460644editdlrm
git-merge-ours.sh3380644editdlrm
git-merge.sh144320644editdlrm
git-notes.sh27170644editdlrm
git-pull.sh104950644editdlrm
git-remote.perl103880644editdlrm
git-repack.sh49950644editdlrm
git-rerere.perl61950644editdlrm
git-reset.sh23020644editdlrm
git-resolve.sh27210644editdlrm
git-revert.sh46970644editdlrm
git-svnimport.perl249710644editdlrm
git-svnimport.txt53910644editdlrm
git-tag.sh40280644editdlrm
git-verify-tag.sh7490644editdlrm
git-whatchanged.sh9240644editdlrm
README1670644editdlrm
Edit: /snap/gh/502/usr/share/doc/git/contrib/examples/git-gc.sh (594B)
#!/bin/sh # # Copyright (c) 2006, Shawn O. Pearce # # Cleanup unreachable files and optimize the repository. USAGE='[--prune]' SUBDIRECTORY_OK=Yes . git-sh-setup no_prune=: while test $# != 0 do case "$1" in --prune) no_prune= ;; --) usage ;; esac shift done case "$(git config --get gc.packrefs)" in notbare|"") test $(is_bare_repository) = true || pack_refs=true;; *) pack_refs=$(git config --bool --get gc.packrefs) esac test "true" != "$pack_refs" || git pack-refs --prune && git reflog expire --all && git-repack -a -d -l && $no_prune git prune && git rerere gc || exit