What is/are the difference(s) when writing this in .gitignore:
/tmp/*
/tmp
/tmp/
I noticed that if I create a folder tmp
, no matter what I write in my .gitignore
it does not appear when I do git status
. What is the difference between those three, and what should I write if I want the folder to be commited, but not the files within it.