I’m in a position where I’m the only one using git, everybody else is using svn. I’ve used ‘git svn’ to connect to the team svn and mostly it works just fine. Lately, I’ve started a project initially on my own, separate git repo and now I need to merge stuff from it to the svn. However, I still would like to keep tweaking the implementation in my own privacy between releases.
So, what would be the most straightforward way to cherry-pick some commits from my private repo to the svn-cloned repo? Requirement is to keep full local history and have only one svn commit for each pick. Or is there some squashing to be done?
As a method to achieve this, is there a way to get the private repo as another origin for the svn-cloned repo?
You could try to git graft the commit from your Git repo to the commit of the git-svn repo before
git dcommitthe git svn repo.The commit from your repo could be isolated in a special branch, when all kind of squashing can take place in order to export a cleaner history.