Ksthawma
Ksthawma

Reputation: 1285

Make each one svn commit as one git commit

I organize one repository with both git and svn. svn is for collaboration. git is my own management because I like to make many many commits and branches but do not want to intefere with other people.

With say 10 git commits, I svn commit once manually. So never need to sync git => svn.

Currently when I see new svn commits, I update svn, then make a commit in git. This one git commit may include several svn commits.

I would like to do: sync every svn => git.

That is, to make EACH ONE svn commit as one git commit.

Ideally with the same commit log.

More ideally each git commit comes with a tag or extra log stating the svn commit number.

Can it be done? With git-svn?

Upvotes: 3

Views: 137

Answers (1)

VonC
VonC

Reputation: 1329692

If you were to use git svn, then you would not put your git repo inside the svn workspace.

You could git svn clone the repo, and git svn rebase at will, while making your own commit in a separate branch of that Git repo.
The svn rebase process would create one git commit per svn revision (but not with the same comment though)

Upvotes: 2

Related Questions