How can I skip commits in git?

后端 未结 3 1871
执念已碎
执念已碎 2021-01-04 04:46

I have some commits that I don\'t want in my project, but there\'s a commit based on them which I do want in it. This is my GitHub \"Network\" graph of the repository (ASCII

3条回答
  •  北海茫月
    2021-01-04 05:50

    You can combine your commits by rebase and squashing the ones you dont need. May be you did not do squash and pick.

    Refere this: http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html

提交回复
热议问题