[`~Repository.git_pull`] allows you to update a current local branch with changes from a remote repository:  
```py
>>> from huggingface_hub import Repository
>>> repo.git_pull()
```  
Set `rebase=True` if you want your local commits to occur after your branch is updated with the new commits from the remote:  
```py
>>> repo.git_pull(rebase=True)
```