4. Pushes the change to the `text-files` repository.  
```python
>>> from huggingface_hub import Repository
>>> with Repository(local_dir="text-files", clone_from="<user>/text-files").commit(commit_message="My first file :)"):
...     with open("file.txt", "w+") as f:
...         f.write(json.dumps({"hey": 8}))
```  
Here is another example of how to use the `commit` context manager to save and upload a file to a repository:  
```python
>>> import torch
>>> model = torch.nn.Transformer()