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