git force pull from different remote branch code example Example: git force pull git fetch --all git reset --hard origin/master