Tagging a git release with current branch name and date
Either add this to your .git/config
[alias]
datetag = !git tag `git name-rev --name-only HEAD`-`date \"+%Y%m%d%H%M\"`
or run it in your project folder to add it to the config for that project:
git config alias.datetag '!git tag `git name-rev --name-only HEAD`-`date "+%Y%m%d%H%M"`'
Then you can just run 'git datetag' to create a new tag to use as a release
Comments [0]



