I\'ve a directory structure like this:
root/ .git deploy/ Site/ blah/ more_blah/ something.local else.development Rakefile
Note: to ignore a directory, you needs to have a '/' at the end of said directory.
/
Rakefile/
For archive, like Arrowmaster mentions in his answer, and like the Pro Git book details, you need the export-ignore option:
export-ignore
Rakefile/ export-ignore