3

I'm using git-svn to use git locally and deploy a client's svn repo. However, after migrating the svn ignore entries to the .gitignore, I have to commit those to git.

But I don't want that file being pushed as a commit to the svn repo everytime I do a git svn dcommit

Any advice?

helion3
  • 34,737
  • 15
  • 57
  • 100

2 Answers2

5

you can use git exclude instead. See the last section here:

http://help.github.com/ignore-files/

Adam Dymitruk
  • 124,556
  • 26
  • 146
  • 141
4

To exclude .gitignore from being pushed upstream you can include it in the .gitignore file.

Simply, add the line ".gitignore" in your .gitignore file

joran
  • 2,815
  • 16
  • 18