Join the HubClone community
and get access to the augmented documentation experience
- Collaborate on models, datasets and Spaces
- Faster examples with accelerated inference
- Switch between documentation themes
to get started
Getting Started with Repositories
This guide walks through creating a repository on the Hub and adding files to it, either through the web interface or with Git on your machine.
Requirements
You need an account on the Hub. To work from the command line you also need Git and a User Access Token with write permission.
Creating a repository
Open the New menu in the header and choose a repository type, or go straight to /new. Then fill in:
| Field | Description |
|---|---|
| Owner | Your user account or one of your organizations |
| Name | A short identifier; it becomes part of the URL |
| License | Optional; can be changed later in the model card metadata |
| Visibility | Public or private |
Adding files to a repository (Web UI)
Uploading a file
Open the Files and versions tab, choose Add file → Upload files, drop the files and write a short commit message. Each upload becomes one commit.
Creating a new file
Choose Add file → Create a new file to write a text file such as a README directly in the browser.
Editing an existing file
Open any text file and click the edit button. Saving creates a new commit on the selected branch, or opens a pull request if you do not have write access.
Adding files to a repository (terminal)
Cloning repositories
Clone the repository like any other Git project. Authentication uses your access token as the password.
git clone https://hubclone.local/your-username/your-model
cd your-modelSet up
Large files are tracked automatically by the Xet storage backend; make sure the Git integration is installed once on your machine before your first push.
Pushing files
Add, commit and push as usual. Files larger than 10 MB are stored as Xet objects behind the scenes.
git add model.safetensors config.json
git commit -m "Add first checkpoint"
git pushPrefer the Python client or the CLI for very large uploads: they upload in parallel and resume after interruptions.
Viewing a repo's history
Every repository has a History view listing commits with author, date and message. Click a commit to see its diff, or copy its hash to pin that exact revision in your code.