I have made many changes to my source files and would just like to pull the last push that was done. I would like it to delete any new files, and revert modified files to the last version. I basically want to just revert to how the origin master last was.
Is there a way to do this without deleting the directory, re-initializing git, and then cloning the repo?
git reset --hardwill bring you back to the last commit, andgit reset --hard origin/masterwill bring you back toorigin/master.