Say, if the file
foo is committed already, having the content of
just a simple line
git checkout -b issue57 is done to create a branch and switch to it (say, that issue57 branch is to last 2 days for development), and a line
footer added is added to the file for now, and then a
git commit -a -m "add a footer to the file".
So now the file
foo has the content
just a simple line footer added
When a "hot fix" or "quick fix" is needed, I thought the command
git checkout master should be used, and now the content of the file
foo should be back to that just one single line. But when I do
more foo, the file has both lines, why is that?