Search code examples
gitgit-svn

Can git-svn not rewrite git history?


I commit changes to git-svn repository, the SHA of my commit is AAAA. After I dcommit, the SHA becomes BBBB.

I understand the SHA changes because git-svn stores SVN metadata.

Is it possible for git-svn not to change SHA but still able to svn rebase and dcommit?


Solution

  • It is not possible for git not to change the SHA, a new SHA is created for any new commit including a rebase.