You could use these commands
git fetch origin
git reset --hard origin/master
Origin is the remote repository
master is the branch
These two commands are used to fetch the commits from the remote repository and positioning your working copy to the master.
And also all local commits that are not committed to the remote will be lost due to -hard option.