# Ignore local commits and pull repository from the remote branch

> Just ignore the local commits and pull from the branch! Reset: Pull changes

- Canonical: https://preview.arshadmehmood.com/today-i-learned/git/ignore-local-commits-and-pull/
- Section: git
- Author: Arshad Mehmood

Just ignore the local commits and pull from the branch!

### Reset:
```
git reset --hard origin/master
```

### Pull changes
```
git pull origin master
```

