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!
欢迎选择我的课程,让我们一起见证您的进步~~
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
$ git cherry-pick
Reference link: http://blog.csdn.net/wh_19910525/article/details/7554430
Hope it helps~ :)
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 understandReference link: http://blog.csdn.net/wh_19910525/article/details/7554430
Hope it helps~ :)