bump2version icon indicating copy to clipboard operation
bump2version copied to clipboard

New option to push tag?

Open stmlange opened this issue 6 years ago • 2 comments

Hello, thank you for this nice and handy tool. As of now it works really nice, but one thing I think would somewhat be nice is an option to automatically push a tag after it was created.

This options only would make sense when a user creates a tag and under git would create the question to which remote the tag should be pushed to (e.g. is it origin or upstream?).

I guess I'm wondering if anyone (or you as creator of the library) would be interested in such a feature.

Theoretically this could also be achieved by https://github.com/c4urself/bump2version/issues/57

stmlange avatar Sep 04 '19 17:09 stmlange

I consider this out of scope for this project. It's easy to automate yourself. Since we're using annotated tags, I personally use the --follow-tags option with git push and even configured it globally to always push matching tags: git config --global push.followTags true. https://stackoverflow.com/questions/5195859/how-do-you-push-a-tag-to-a-remote-repository-using-git/26438076#26438076 is a good read on this.

@c4urself do you agree?

ekohl avatar Sep 20 '19 18:09 ekohl

If #84 would get implemented (allowing custom arguments to git tag) then the user could configure --tag to part of the custom arguments at will.

florisla avatar Jan 14 '20 09:01 florisla