git remove my local changes and pull from master

C++
# Discarding local changes (permanently) to a file:
git checkout -- <file>

# Discard all local changes to all files permanently:
git reset --hardgit clean -df
git checkout -- .
git reset --hard <your commit hash key>

Source

Also in C++: