How can you git-checkout
without overwriting the data?
I run
git checkout master
I get
error: Entry 'forms/answer.php' would be overwritten by merge. Cannot merge.
This is surprising, since I did not know that Git merges when I git-checkout
.
I have always run after the command separately git merge new-feature
.
This seems to be apparently unnecessary if Git merges at checkout.