git 在原有change基础上改动

git fetch ssh://username@gitserver: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



猜你喜欢

转载自blog.csdn.net/u011218405/article/details/34822775
今日推荐