Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Overload cd to garbage collect git
# overload cd to gc git when entering a directory
cd () {
builtin cd "$@"
if [ -d ".git" ]; then
(git gc --quiet &)
fi
}
@Favorwilliams

My Pleasure to write you,
My name is Favor Williams,
My email address is
( Favor24@live.com)
Am interested to know
more about you,
Contact me for my
photo and other
important issue via,

Favor24@live.com

@Favorwilliams

My Pleasure to write you,
My name is Favor Williams,
My email address is
( Favor24@live.com)
Am interested to know
more about you,
Contact me for my
photo and other
important issue via,

Favor24@live.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment