![Building Enterprise JavaScript Applications](https://wfqqreader-1252317822.image.myqcloud.com/cover/349/36699349/b_36699349.jpg)
上QQ阅读APP看书,第一时间看更新
Keeping our history clean
The reason our Git history looks so complicated is because git merge creates a separate commit for the merge. This is good because it doesn't alter the history of any of the branches; in other words, it is non-destructive:
![](https://epubservercos.yuewen.com/9BFEC6/19470387701532906/epubprivate/OEBPS/Images/d10e089b-1475-4693-8bbf-f6feb8675036.jpg?sign=1738840974-aBntNQepeEUN3kD9Qt3ZBc0H8doKM3uP-0-8add5cb32fc373a2f5da33cab09d6ea4)
To prevent the complicated history tree we have here, Git provides an alternative command, rebase, that allows us to merge changes, as well as keep our history clean.