Skip to content

Instantly share code, notes, and snippets.

@salcode
Last active August 29, 2015 13:57
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 salcode/266f36dc7a585a2dfb44 to your computer and use it in GitHub Desktop.
Save salcode/266f36dc7a585a2dfb44 to your computer and use it in GitHub Desktop.
git - created tagged version with compiled files
# 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