1. 程式人生 > >Git基礎-生成Patch和使用Patch

Git基礎-生成Patch和使用Patch

.com push gerrit man log sts rep ger 項目目錄

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

技術分享

就這樣~

Git基礎-生成Patch和使用Patch