0

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 …” to unstage)
modified: java/com/mycompany/TestContacts.java
modified: java/com/mycompany/TestParser.java

Kuldeep Baberwal Changed status to publish February 4, 2025