---
title: "在Git中使用补丁"
author: "xwv"
date: "2013-04-09T11:33:33Z"
tags: ["Git", "patch", "scm"]
categories: ["开源软件"]
slug: "git"
draft: false
lastmod: "2013-04-09T11:33:33Z"
id: 1844340
url: "https://xwv.iteye.com/blog/1844340"
---

如题在Git中如何使用补丁?

      现有两种应用补丁的方法: git apply和git am,分别对应着标准的Patch文件和Git专有的Patch文件.

      可以参看下面的web:

      1. [Git - 项目的管理](http://git-scm.com/book/zh/%E5%88%86%E5%B8%83%E5%BC%8F-Git-%E9%A1%B9%E7%9B%AE%E7%9A%84%E7%AE%A1%E7%90%86#%E9%87%87%E7%BA%B3%E6%9D%A5%E8%87%AA%E9%82%AE%E4%BB%B6%E7%9A%84%E8%A1%A5%E4%B8%81)

      2. \[转][Git的Patch功能](http://blog.csdn.net/guoleimail/article/details/7839739)

      3. [Git的Patch功能](http://www.cnblogs.com/y041039/articles/2411600.html)