Created
February 18, 2011 14:53
-
-
Save gingerhendrix/833752 to your computer and use it in GitHub Desktop.
Blank branch and submodule setup for deployment config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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