Sometimes when I use git checkout master
the changes made in my previous branch are automatically merged into master:
cat >> some_file.txt
change from branch1
git checkout master
This outputs that the changes made to some_file.txt
are merged into master
. For example:
M some_file.txt
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'
Why do I get a merge without explicitly telling git to do so? (Im using git from brew on OSX).