I don't understand how to tag a version properly in git so the version is pushed to github together with the tag.
In fact I don't even know which is the right moment for setting the the tag name.
Do I need to set the tag before the local commit or after the local commit?
I've seriously checked the git documentation.
And then, when I want to push to remote i.e. github do I explicitly need to set the tag name again like in this example:
https://stackoverflow.com/a/5195913/716568
Is there no way to automatically push in sync with the currently set local tag?