- with the `commit` context manager.
- with the [`~Repository.push_to_hub`] function.  
Whenever you want to upload files to the Hub, you need to log in to your Hugging Face account. For more details about authentication, check out [this section](../quick-start#authentication).