how to pull the changes from git without staging local changes

Shell
git stash save
git pull
git stash pop
Source

Also in Shell: