Retroactively Correct Authors with Git SVN?

后端 未结 3 861
臣服心动
臣服心动 2020-12-07 10:00

I have a repository which I have already cloned from Subversion. I\'ve been doing some work in this repository in its Git form and I would hate to lose that struct

3条回答
  •  萌比男神i
    2020-12-07 10:32

    You probably want to look into git-filter-branch, specifically the --commit-filter option. This command is a powerful chainsaw that can rewrite your entire repository history, changing whatever you might want to change.

    Note that when you do this, you should pull new clones from the updated repository since the SHA1 hashes of every commit may have changed.

提交回复
热议问题