git fetch origin master
git reset --hard FETCH_HEAD
git clean -df
git fetch --all
git reset --hard origin/master
For other brances use git reset --hard origin/<branch_name>
git fetch origin master
git reset --hard FETCH_HEAD
git clean -df
git fetch --all
git reset --hard origin/master
For other brances use git reset --hard origin/<branch_name>