1. 程式人生 > >git 在原有change基礎上改動

git 在原有change基礎上改動

git fetch ssh://[email protected]:port/project_patch refs/changes/11/6011/1 && git format-patch -1 FETCH_HEAD


This command is used to get the change as patch and generate it under current directory

It could be copied from the change in gerrit server

Format:

git projectname changeid && git format-patch -1 FETCH_HEAD


Then you can use apply or am command to apply the patch and commit it.


git apply/am 001*.patch