Configure git by using the template for .gitconfig, and adding commands for a Git-aware prompt to .profile.
To clone the repository (the "template" parameter is important):
git clone [email protected]:user/repo.git --template=/PATH/TO/TEMPLATES
Also run (this will set up the repository so a branch can be pushed only while on that branch):
git config remote.origin.push HEAD