-
-
Notifications
You must be signed in to change notification settings - Fork 954
Add lightweight tag to specific annotated tag use GitPython API #1942
Unanswered
AlesyaSeliazniova30032012
asked this question in
Q&A
-
I still have a question. I need to add a lightweight tag to the annotated tag using the Git python API.
repo.create_tag ()
adds an annotated tag, not lightweight.
do something like:
repo.git.checkout(annotated_tag)
repo.git.tag(new_lightweight_tag)
repo.remotes.origin.push(new_lightweight_tag)
causes Aborting... when executing git checkout
if some local changes are not saved
Is there any other way to use the Git Python API to create lightweight tag to specific annotated tag?
found similar question without answer https://stackoverflow.com/questions/58628666/gitpython-creating-a-lightweight-tag
Thanks
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
I dumped all the text into chatGPT, but think it's answer might not quite be on point.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment