Is it necessary to commit to git repository before checkout? I've heard it is, because I can lose the changes. However, after modifying a file and checking out, I could easily come back to my previous branch and I didn't lose any work. The file had M status.
They state here that M
means Merged (that's weird, I think it notifies me about modifications).
$ git checkout master
M README
Switched to branch 'master'
$ cat README
This is the README file.
This line was added in the working directory while in the test branch.
From 'Git Checkout Without Committing: WITHOUT A Conflict' section.
What does M README
mean?
Thanks for help.