linghaiyan 发表于 2018-1-13 13:54:18

git 只merge一个commit的方法

  https://git-scm.com/book/tr/v2/Git-Basics-Viewing-the-Commit-History
  gil log 来查看commit的记录
  Other maintainers prefer to rebase or cherry-pick contributed work on top of their master branch, rather than merging it in, to keep a mostly linear history. When you have work in a topic branch and have determined that you want to integrate it, you move to that branch and run the rebase command to rebuild the changes on top of your current master (or develop, and so on) branch. If that works well, you can fast-forward your master branch, and you’ll end up with a linear project history.
页: [1]
查看完整版本: git 只merge一个commit的方法