Git clone writable
# bash function: set git clones user-writable (annoyingly if you clone some files are non-user-writable... dangerously tempts 'sudo rm -rf'!)
git()
{
if [ $1 = "clone" ]; then
# Might work.
#find . -iname .git* -perm u-w -exec chmod u+w {} \+;
command git "$@" && chmod -R u+w */.git*;
# You may prefer.
#command git "$@" && rm -fR */.git*;
else
command git "$@";
fi;
}