In the root of my (versioned) project I create a folder with a .sh file inside and a README file. Then with the command git status
the output (correctly) was that I've to git add
the new files.
I don't git add
the files but I added them to .gitignore
file.
After that, with git status
the output was that I have to git add
the modified .gitignore
.
Then I print git add .
and git commit
commands.
Now my two initial files are not present and I can't understand why.
With adding files in .gitignore
I thought that the files were present but the changes were not tracked but not that they disappeared.
Did I get it wrong or did I make some mistakes? What happened to those files?