I am new to git. I have one project where I keep on making changes and I add, commit and then push to the remote repo from the local VS Code. Now I have made some changes in my local repo. So when I do git status I see changed files in "RED COLOUR". But I do not want these change. I want to see my local repo in sync with the last successful push.
Expected Behaviour:
So, when I do git status
I should see message as "your local repo is in sync with master repo". Also, when I switch to Local VS code. I should get the prompt as "External source is modifying the files" And if I say YES. I get back to the last successful push.
P.S: I want all these changes to completely GO AWAY as it they were never made.
Attempt made: I did git checkout
. But after running it if I again type git status I again see these red files. I DO NOT Want to see these changes at all. Please help me here.