GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add lightweight tag to specific annotated tag use GitPython API · gitpython-developers/GitPython · Discussion #1942

Add lightweight tag to specific annotated tag use GitPython API #1942

Unanswered
AlesyaSeliazniova30032012 asked this question in Q&A
Add lightweight tag to specific annotated tag use GitPython API #1942
@AlesyaSeliazniova30032012 AlesyaSeliazniova30032012
Jul 10, 2024 · 1 comment
Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

AlesyaSeliazniova30032012
Jul 10, 2024

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

You must be logged in to vote
All reactions

Replies: 1 comment

Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

Byron
Jul 11, 2024
Maintainer

I dumped all the text into chatGPT, but think it's answer might not quite be on point.

You must be logged in to vote
All reactions
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
@AlesyaSeliazniova30032012 @Byron
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.