---
title: "Discussion on \"Git中只merge部分commit\" | Hashnode"
description: "Discussion on \"Git中只merge部分commit\". cherry-pick\n在Git 1.7.2以上的版本引入了一个 cheery-pick的命令可以只merge 部分的commit而不用直接把整个分支merge过来\ngit cherry-pick <commit 号>\n如：\ngit cherry-pick e43a6fd3e94888d76779ad79fb568ed180e5fcdf\n这样就只会把这个e43a6fd3e94888d76779ad79fb568ed180e5fcdf commit的内容pull到当前的分支，不过你会得到一个新的c..."
url: "https://hashnode.com/posts/gitmergecommit/6262368ad82f4558aff86ad2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Git中只merge部分commit](https://lihua.hashnode.dev/gitmergecommit?utm_source=hashnode&utm_medium=feed)

cherry-pick 在Git 1.7.2以上的版本引入了一个 cheery-pick的命令可以只merge 部分的commit而不用直接把整个分支merge过来 git cherry-pick <commit 号> 如： git cherry-pick e43a6fd3e94888d76779ad79fb568ed180e5fcdf 这样就只会把这个e43a6fd3e94888d76779ad79fb568ed180e5fcdf commit的内容pull到当前的分支，不过你会得到一个新的c...

Apr 22, 2022 · 1 min read · lihua.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)

## Written by

[Xin shen](https://hashnode.com/@lihua)

@lihua · China Beijing

  
[View profile](https://hashnode.com/@lihua)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
