huggingface_hub
huggingface_hub copied to clipboard
Implement additional CLI branch functionality
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
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.