I want git to forget everything that I have edited in local branch, and want to pull the update from remote branch.
I did not know how to do that and I am getting merge conflicts on few files.
What should I do if I do not want to merge the files at all (local edits need to be deleted) and start new with the remote HEAD?
Supposing you are talking about changes done on
masterbranch for instance:You reset
masterHEADon the one ofremote/master, and then can fetchremote/master+ merge it to localmaster.