# Autostash ([source](https://www.blogweb.dev/post/git-autostash)) If there are uncommitted changes, you need to _stash_ those changes first, then pull the remote updates, and _pop_ your stash to continue your work. This gets quite tedious, but since Git [2.6](https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.6.0.txt) you can use the **autostash** option to automatically stash and pop your uncommitted changes. `$ git pull --rebase --autostash` Instead of invoking this option manually, you can also set this for your repository with `git config`: ```bash git config pull.rebase true git config rebase.autoStash true ```