When you try to checkout
some target, it will place the contents of the target on-disk. If you have made changes on-disk, then checkout
will (by default) refuse to overwrite any changes that you have made and will give you a checkout conflict:
error: The following untracked working tree files would be overwritten by checkout:
file_one
file_two
Please move or remove them before you switch branches.
Aborting
Note that each file that is in conflict is identified individually, one per line.
In your case, you have a conflict reported as:
README.md a_text_file.txt
In this case, this is not two files, but a single file. Somehow you have ended up with a file named README.md a_text_file.txt
in your working folder. This happens to me periodically when I fat-finger a vi command or a shell redirection. Or possibly when I write a script where whitespace is a delimiter, but only sometimes (like bash) and it ends up treating a list of paths as a single string instead of an array.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…