Last active
December 24, 2015 12:39
-
-
Save andyhite/6799663 to your computer and use it in GitHub Desktop.
This file contains 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
# 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