force git pull without commit code example
Example 1: how to pull the changes from git without staging local changes
git stash save
git pull
git stash pop
Example 2: oevrride localwith remote branch
git reset --hard origin/master
git stash save
git pull
git stash pop
git reset --hard origin/master