0
一个相当小的项目资源库中占有> 200兆字节。以下是历史记录的样子:合并两次提交在远程仓库
...
1) regular commit
2) regular commit
3) commit which adds 100mb of useless files + does something useful
4) regular commit
5) commit which removes all of the useless files
6) regular commit
...
我想减小存储库的大小。还承诺3
的有用的变化应该不会丢失。有没有一种方法来提交3
和5
合并成一个远程仓库?
'git help rebase',搜索'interactive rebase'和'squash' – kan