When you’re using git-svn integration, it’s common that you need to ignore a lot of files, so you might think of using .gitignore.
That’s fine, but you shouldn’t push the .gitignore itself into the original repository, so you shouldn’t include it in your commits. The solutions I found for this are:
Include
.gitignorein.gitignoreitself! That works, and feels awkward at the same time.
Use
.git/info/excludethat works like a .gitignore that isn’t versioned, for the local repository only.
The second solution is a lot better. I heard about it here and here.

