We have a central svn repository and are starting to have people use git locally to manage work items.
When I first set up my local git repository, I set ignore-path to ignore trunk so I could just work on one branch. My coworker did not ignore trunk. This was fine until we started to use a third bare repository to push/pull branches to each other.
When I pull their git branch, it treated trunk as an add and now its a mess.
When I run git svn I now do want it to sync the trunk. How do I re-add/unignore trunk from my local repository?
When you use git-svn to access an svn repository, the best way is to only use the subversion repo to share code¹.
When you run
git svn fetch, the new svn revisions of your branch should be imported.Now that you already have shared git revisions, you have to use
git rebase --interactiveandgit cherry-pickto linearize the history, and push it into subversion withgit svn dcommit.¹ Thomas Ferris Nicolaisen and Kris Brown described in detail what you have to do when you want to exchange code with an shared svn mirror.