I have a git directory which contains the a whole bunch of files and then has a directory called \'sessions\'. \'sessions\' contains cookie information for my web.py program
Since July 2007, gitignore does describe the exclusion patterns.
If the pattern ends with a slash, it is removed for the purpose of the following description, but it would only find a match with a directory.
In other words, foo/ will match a directory foo and paths underneath it, but will not match a regular file or a symbolic link foo (this is consistent with the way how pathspec works in general in git).
As illustrated by this thread, that pattern was not always expressed with a '/' for matching directory.