how to pull and get rid of all local changes code example Example: how to pull the changes from git without staging local changes git stash save git pull git stash pop