Skip to content

Instantly share code, notes, and snippets.

@webdevwilson
Last active December 26, 2015 10:49
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save webdevwilson/7139158 to your computer and use it in GitHub Desktop.
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
Copy link

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
Copy link

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