Skip to content

Instantly share code, notes, and snippets.

@digitup
Created August 17, 2012 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitup/3382468 to your computer and use it in GitHub Desktop.
Save digitup/3382468 to your computer and use it in GitHub Desktop.
Git: website workflow
cd ~/domain.com
git init
git add .
git commit -m "initial import of pre-existing web files"
cd ~/hub.domain.com
git --bare init
cd ~/domain.com
git remote add hub ~/hub.domain.com
git push hub master
cd ~/dev.domain.com
git clone ~/hub.domain.com
git remote rename origin hub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment