Skip to content

Instantly share code, notes, and snippets.

@andyhite
Last active December 24, 2015 12:39
Show Gist options
  • Save andyhite/6799663 to your computer and use it in GitHub Desktop.
Save andyhite/6799663 to your computer and use it in GitHub Desktop.
# Get your project into GitHub
cd /your/project/directory
git init .
git add -A .
git commit -m "Initial import"
git remote add origin https://github.com/[user]/[repo].git
git push origin master
# After making some changes
git add -A .
git commit -m "Description of what I've changed"
git push origin master
# Tag a release when you're ready
git tag v0.1.0
git push origin v0.1.0
# On your server, where you want to deploy the first time
cd /path/to/where/project/will/live
git clone https://github.com/[user]/[repo].git
git checkout v0.1.0
# On your server, when you want to deploy after that first time
cd /path/to/project/itself
git pull
git checkout v0.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment