Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you indicate files to ignore in svn when using git and the git-svn bridge?

There is a master subversion repository that I've cloned a git repo from. I've got a lot of ignored files in my .gitignore that I'd like the svn repository to know about.

I know that I can use git svn show-ignore to pull the ignored list from subversion, but how can I do the reverse? Send a list of files to be ignored back to the svn repo?

Git version (and git-svn is at the same version):

git --version 
git version 1.7.0.5
like image 714
Kzqai Avatar asked May 12 '10 18:05

Kzqai


2 Answers

Ok, so one (annoying) method that I've found is to:

(convenience step) add the gitignore file to the repository so that it is tracked.

Do an svn checkout.

svn propedit svn:ignore ./

Add in all the stuff that's in the tracked gitignore file.

This is pretty ugly, though, and who likes to actually touch & checkout svn when you're working with git? Anyone have a better alternative?

like image 99
Kzqai Avatar answered Sep 27 '22 16:09

Kzqai


Git svn does not support this, so you'd have to do it yourself on a separate svn checkout. From the manual:

We ignore all SVN properties except svn:executable

It would be really nice though if this wasn't the answer...

like image 24
iwein Avatar answered Sep 27 '22 17:09

iwein