Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rochacbruno/91e7b94d46f14c0bca26d60cd7844271 to your computer and use it in GitHub Desktop.
Save rochacbruno/91e7b94d46f14c0bca26d60cd7844271 to your computer and use it in GitHub Desktop.
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
3) Delete and recreate the tag locally
git tag -d {tagname}
git tag {tagname}
4) Delete and recreate the tag remotely
git push origin :{tagname} // deletes original remote tag
git push origin {tagname} // creates new remote tag
This is based on https://gist.github.com/739288 thanks to nickfloyd for it
@rochacbruno
Copy link
Author

git log v2.1.0...v2.1.1 --pretty=format:'<li> <a href="http://github.com/jerel/<project>/commit/%H">view commit &bull;</a> %s</li> ' --reverse | grep "#changelog"

@rochacbruno
Copy link
Author

git log 0.8.0...0.8.2 --pretty=format:'<li> <a href="http://github.com/rochacbruno/flasgger/commit/%H">view commit &bull;</a> %s</li> ' --reverse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment