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
  • 30,779
  • 15
  • 51
  • 95

2 Answers2

5

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

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

Adam Dymitruk
  • 117,004
  • 25
  • 140
  • 137
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,585
  • 15
  • 18