git 在原有change基础上改动

来源:互联网 发布:开源cms php 企业站 编辑:程序博客网 时间:2024/05/22 03:50

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



0 0
原创粉丝点击