In a python script, I try to create and push a tag to origin on a git repository. I use gitpython-1.0.2.
I an able to checkout anexisting tag but no way to find how to push a new tag to remote.
Many thanks
tag = repo.create_tag(tagName, message=mesg)
repo.remote.origin.push(tag.path)
tag.name
may be conflict with your local branch name, use tag.path
here.
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