I have two branches below:
$ git branch
master
* mvn
mvn
branch had a modified file
when i did git checkout master
and then git reset --hard HEAD^
it also did the same op for the mvn branch, meaning my modified file was gone .
what can i do so that the ops in master branch do not affect mvn
branch or vice versa?