Using TortiseSVN you can update/commit a single directory by right clicking the directory and selecting update or commit.
I really like the branching power of git, but if I use git svn dcommit it will try to update the entire repository, which in our case has several projects in it.
So how can I commit only specific files/directories?
Thanks!
EDIT
To clarify what the SVN repos look like:
+- Trunk
|
+-+- Project 1
| |
| +- Project 1 files...
|
+-+- Project 2
| |
| +- Project 2 files..
|
+-+- My Project
|
+- My Project files...
And when I run git svn dcommit it tries to update everything in Project 1, 2, and My Project.
Project 1 and 2 are completely unrelated, and under development by others. How do I avoid updating/committing to the other projects? Do I simply add those dirs to .gitignore? What about if I later need to work on those other projects? Alternatively, is there a better way to use git svn to work with this type of Subversion repository?
git addthe directory you want, commit it and then do the dcommit ( after appropriate cherry picking )I don’t see how the problem of having multiple projects comes in. You will be adding the files in your concerned project and adding them. Don’t compare commit in SVN to the dcommit here. Compare commit in SVN to the commit in Git. Just like how you would “right click on the directory” and commit it,
git add( or use TortoiseGit and do the same as you do in TortoiseSVN ) only that directory and commit. Then, do the dcommit.