What type of stuff do you want to ignore?
A gitignore file is just a file that tells git which files to ignore.
You might have files that contain sensitive information, generated files, or files that pertain to your machine in particular. You don't want those files checked in to a public repository.