Last active
August 29, 2015 13:57
-
-
Save salcode/266f36dc7a585a2dfb44 to your computer and use it in GitHub Desktop.
git - created tagged version with compiled files
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
# create and switch to new branch "tag-branch" | |
git checkout -b tag-branch | |
# add compiled files | |
git add -f css/style.min.css | |
git add -f js/javascript.min.js | |
# commit with compiled files | |
git commit -m 'add compiled files' | |
# create a tag for commit that includes the compiled files | |
git tag -a v0.7 -m "Version 0.7 Stable" | |
# push the tags up to your remote repository (e.g. GitHub) | |
git push --tags | |
# switch back to the master branch | |
git checkout master | |
# delete the branch you used for your tagged commit | |
git branch -D tag-branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment