The following reduces the amount of memory & resources Git uses. I am obviously sure it will make it crappier, slower and make it run as slow as molasses but at least it won't kill the box. That's a win in my book. Consult the manual for further reading.
git config --global pack.windowMemory "100M"
git config --global pack.packSizeLimit "100M"
git config --global pack.threads "1"