兩個分支 - master
和feature
- 與git merge --no-ff
合併。後來feature
分支被刪除。樹看起來像這樣:git合併後清理--no-ff
* (master) A new feature added to the master
|\
| * yet another small commit
| * another small commit
| * small commit
|/
* Master before the feature was added
我想清理這些小提交從樹上所以它看起來像:
* (master) A new feature added to the master
* Master before the feature was added
如何做到這一點?當地的回購尚未推出。
'git log --graph --decorate --pretty = oneline --abbrev-commit --all' –