Skip to content

Instantly share code, notes, and snippets.

@gingerhendrix
Created February 18, 2011 14:53
Show Gist options
  • Save gingerhendrix/833752 to your computer and use it in GitHub Desktop.
Save gingerhendrix/833752 to your computer and use it in GitHub Desktop.
Blank branch and submodule setup for deployment config
#Create blank branch
git symbolic-ref HEAD refs/heads/deploy_production
rm .git/index
git clean -fdx
touch .gitignore
git add .gitignore
git commit -m "Initial Commit"
#Add submodule as html
git submodule add -b production git@kaizen:somesite.com.git html
#On remote
sudo -u www-data git clone -b deploy_production git@kaizen:somesite.com.git somesite.com
sudo -u www-data git submodule update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment