huggingface_hub icon indicating copy to clipboard operation
huggingface_hub copied to clipboard

Implement additional CLI branch functionality

Open martinbrose opened this issue 1 year ago • 2 comments

References https://github.com/huggingface/huggingface_hub/issues/1655

Key features

  • Adds huggingface-cli branch create: Create a branch on a repo on huggingface.co
  • Adds huggingface-cli branch list: List branches on a repo on huggingface.co
  • Adds huggingface-cli branch delete: Delete a branch on a repo on huggingface.co

martinbrose avatar Sep 16 '23 21:09 martinbrose

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

I quickly reviewed and tried these commands. Thanks for implementing them! What I suggest to do is to finish https://github.com/huggingface/huggingface_hub/pull/1671 and agree on the direction we want to take and then go back to this PR specifically. For what I've seen, it's already pretty good. I'd update a few args and simplify the output but apart from that, it should be straightforward.

Wauplin avatar Sep 19 '23 15:09 Wauplin