Git export from BitBucket
One of the consequences of moving to git is that I needed to get our deployment scripts working with it. The first requirement was an equivalent to svn export. This is simple enough, but, as usual, I wanted to save myself some effort and created a script that wrapped it up for me. git-export.sh: #!/bin/sh # # USAGE: export.sh REPO_NAME BRANCH_NAME [DIRECTORY_NAME] [BITBUCKET_ACCOUNT_NAME] # # BITBUCKET_ACCOUNT_NAME=akrabat GITROOT=git@bitbucket.org:${BITBUCKET_ACCOUNT_NAME} if [ -z "$1" ]; then echo "Usage… continue reading.