git force pull master code example
Example 1: git force pull
git fetch --all
git reset --hard origin/master
Example 2: git pull hard
git reset --hard origin/master
Example 3: force pull git
# WARNING: this can't be undone!
git reset --hard HEAD
git clean -f -d
git pull
Example 4: git force push to remote
git push -f <remote> <branch>
# example: git push -f origin master