Combine local Git commits into one commit for git-svn

后端 未结 6 1414
野的像风
野的像风 2021-01-30 09:16

Currently, when I run git svn dcommit git creates a separate commit in SVN for every local commit I\'ve made since last syncing with SVN. Is there any way for

6条回答
  •  半阙折子戏
    2021-01-30 09:54

    git rebase remotes/trunk --interactive 
    

    should bring you to the menu where you can pick commits or squash them all into 1 commit in order to avoid polluting your svn repository. This is a really good (but short) resource on working with git-svn.

提交回复
热议问题