When making a GitHub commit, how do I tag it using the git command-line options before pushing it to remote repo?
Can something like this be done?
git commit -m 'first commit' -tag -a v0.0.1 -m "1st release"
AFAIK, you cannot commit & tag in one command.
git commit -m "prepare for v1.0.0 release"
git tag v1.0.0
git push origin master --tags
All you can do is connect commands via &&
:
git commit -m "prepare for v1.0.0 release" && git tag v1.0.0 && git push origin master --tags
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With