【Git】生成Patch和使用Patch

1.生成Patch(俗称快照)

先来看看repo manifest 的用法 

<1>cd /工作目录/项目目录/.repo/manifests

<2>repo manifest -r -o 20170601_LittleCola.xml

<3>将快照(.xml文件)push到服务器

a. git status 

b. git add .

c. git commit -m "modify message"

d. git push .....

2.使用Patch

该Patch获取代码:

repo init -u gerrit_lv:platform/manifest -b LittleCola -m 20170601_LittleCola.xml --no-repo-verify



repo sync  -j16

 就这样~

原文地址:https://www.cnblogs.com/wucaiyun1/p/6934863.html