git same as origin master code example Example: git same as origin master git reset --hard origin/master