I cannot get .gitignore to ignore a directory... I have read other threads and they are all suggesting the directory or file that is not being ignored has been committed, and that is why it's not ignored. This is not the case. Could you please take a look at what I am doing below and let me know what I am doing wrong?
I am sorry if I didn't format this correctly... I am new to stackoverflow.
$ mkdir stackoverflow_example
$ cd stackoverflow_example
$ git init
$ mkdir ignoreThis
$ echo "/ignoreThis" > .gitIgnore
$ cd ignoreThis
$ echo "ignore this text file in the ignoreThis directory" > ignoreText.txt
$ cd ..
$ type .gitignore /ignoreThis
$ git status
On branch master
Initial commit
Untracked files: (use "git add ..." to include in what will be committed)
.gitIgnore
ignoreThis/
nothing added to commit but untracked files present (use "git add" to track)
Shouldn't ignoreThis
not be listed in my staging area at this point.