question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a git tag to a repository

See original GitHub issue

Is there a way in huggingface_hub to add a git tag at a specific revision without cloning the repo locally ?

This would be useful to allow users to specify a git tag when they do push_to_hub for a model or dataset, so that they can reload it later at that resivion.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
Wauplincommented, Sep 20, 2022

A tag endpoint has been added to the Hub (internal link) ! 🎉

So we can now implement it in huggingface_hub as well. Preferred solution is to have a separate method for this (e.g. create_tag(commit="...")).

2reactions
julien-ccommented, Aug 26, 2022

if we do this, API-design-wise i don’t know whether it should be an extra param to create_commit, or a dedicated create_tag(commit="...") method

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git - Tagging - Git SCM
In this section, you'll learn how to list existing tags, how to create and delete tags, ... The Git source repo, for instance,...
Read more >
How To Create Git Tags - devconnected
To push your newly created tags, use the “git push” command and specify the “–tags” to explicitly push tags to your remote Git...
Read more >
git tag | Atlassian Git Tutorial
Git tag command is the primary driver of tag: creation, modification and deletion. Learn how you can use them to organize code and...
Read more >
git tag - how to create a tag in a GitHub repository? - Intellipaat
1 Answer · 1. Click on release on your repository. image · 2. Create a new release. image · 3. Give your tag...
Read more >
Github Tags - Tools QA
Yes, we can add tags directly to GitHub. To sync the same with your local repository, you need to pull the changes using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found