I'm transitioning our code base from svn to git.
Our current deployment process is to run an in house script that checks out the most recent svn revision into a newly created directory to create a working copy on the server. It then runs any sql commands that need to occur and changes a symlink from the curent working copy to the newly checked out working copy.
This is a simple way of handling updates and allows us to easily roll back the code base to the old one by changing the symlink if there is an issue.
Is it possible to fetch just a single specified branch from a git server into a newly created directory or do I need to clone the entire contents of the repository?
Or is there is a better method of handling the code base with git?