I've found a very helpful git clone syntax for doing builds where you do not need the entire git history of revisions. Note that this seems to require Git version 1.9+:
git clone -b <remoteBranch> --single-branch --depth 1 ssh://username@servername.net:serverport/PathToProject <FolderName>
Notes:
This clones and checks out "remoteBranch" without the other branches, at a depth of 1 (so only the most recent file snapshots) into the folder "FolderName"