I have 2 files in my git folder 1.txt
and 2.txt
. I added a line in one of the files (1.txt
) and moved it to staging. When I try to check the same file out from local repository, why doesn't it work?
Even after the checkout the file has the same content as in the local folder and does not replicate the older file content from the local repository. Why does checkout command remove my newly added line adding new text
? I am a bit confused by this behaviour. Please, refer to the picture below for my series of commands.