How do I reset my local branch to be just like the branch on the remote repository?
I tried:
git reset –hard HEAD
But git status claims I have modified files:
On branch master
Changes to be committed:
(use “git reset HEAD
modified: java/com/mycompany/TestContacts.java
modified: java/com/mycompany/TestParser.java
git fetch origin reset –hard origin/master — two steps can be taken to align your branch with the remote branch.\n\nFor example, if you want to save your current branch\’s state before doing this (just in case), you can do: git commit -a –m \”Saving my work, just in the case\” git branch my-saved-work.\n\nIf you want your work to be saved on the branch \”my-saved-work\” (or want to look at it later later or diff it against your new branch) Note that the first example assumes that a push has been done into the name of the remote repo and that \”the branch named \”master\” is the same branch as the current checked-out branch in your local repor\” in the re-appo. Is this an awful case if you\’re responding to this case that you recently pushed into oo-revo branch, i?