repo.or.cz
/
git
/
repo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
core.logallrefupdates: log remotes/ tracking branches.
[git/repo.git]
/
git-gc.sh
blob
6de55f729258200a0215f65bbacb0a1cf1c0c51f
1
#!/bin/sh
2
#
3
# Copyright (c) 2006, Shawn O. Pearce
4
#
5
# Cleanup unreachable files and optimize the repository.
6
7
USAGE
=
''
8
SUBDIRECTORY_OK
=
Yes
9
. git-sh-setup
10
11
git-pack-refs
--prune
&&
12
git-reflog expire
--all
&&
13
git-repack
-a -d -l
&&
14
git-prune
&&
15
git-rerere gc ||
exit