what to do after a git reset -- hard (commit)?

Viewed 43

after doing a git reset --hard (commit) to go back to a commit, I'm having trouble. Now, when I make changes to an html page for example and I refresh my server, nothing happens.

And when I go from one branch to another, I have these funny lines that start with M.

# git co main
Switched to branch 'main'
M       .idea/body-and-mind.iml
M       .idea/php.xml
Your branch is up to date with 'origin/main'.

I don't know what I should do to get my behavior back to normal.

Do you have an idea ? Thanks

0 Answers
Related