When I run 'git checkout', I also want to delete all additional files that have been created after commit.
But I couldn't find the way. Here is the thing I tested,
I created a directory test and made a file test/test.txt after I commit.
Then I run git add . and git checkout, but the new file and directory were not deleted.
Why the new files were still exist even though I put command git checkout as roll-back?
How can I go back to the stage completely?
Thank you for your time and reading my question.
 
     
     
     
    