github force pull from remote code example
Example 1: git force pull
git fetch --all
git reset --hard origin/master
Example 2: force pull git
# WARNING: this can't be undone!
git reset --hard HEAD
git clean -f -d
git pull
git fetch --all
git reset --hard origin/master
# WARNING: this can't be undone!
git reset --hard HEAD
git clean -f -d
git pull