I rolled my local repo back to a commit and then made some local changes. Now I wanted to update (simply overwrite) the remote with my local repo. But when I did a git pull, the terminal showed bunch of conflicts. I don't want the remote changes, I just want my local files to be committed.
I read somewhere to do
git checkout --ours
I ran it like
git checkout --ours .
But after running the command when I did git status
It showed the previous state.