Git merge history specifies multiple commits
天蓬老师
天蓬老师 2017-05-02 09:29:08
0
2
729

If I have 2000 commits in a warehouse, is there a way to merge the 1st to 1000th commits into one commit?
It’s okay to manually reset and then stash 10 pieces, but a large number is not appropriate!

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
过去多啦不再A梦

If you are merging consecutive commits, git rebase -i is more suitable. Mark the commit as squash to merge it into the previous commit.

某草草

There is a way, I suggest you watch Cherry Picking $ git cherry-pick You should understand

Reference link: http://blog.csdn.net/wh_19910525/article/details/7554430

Hope it helps~ :)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template