Using Git
Mostly things I don’t do often and want a quick reference for.
Undo a Commit
git reset --soft HEAD^
Generating a Changelog
git shortlog --numbered <previous_tag>..HEAD
Making a Release
Create an annotated tag:
git tag -a <tag name>
Add any relevant text (see Generating a Changelog below).
Use:
git push --tags
OR
git push --follow-tags
To either push the latest tag, or push tags with any un-pushed commits respectively.
Add the following to ~/.config/git/config to make that default behaviour when doing git push:
[push]
followTags = true