git format-patch 使用方法
来源:互联网 发布:python 推荐系统库 编辑:程序博客网 时间:2024/04/29 00:31
git format-patch 使用方法
分类: git2013-09-13 21:00 7265人阅读 评论(0) 收藏 举报
使用git format-patch生成所需要的patch:
# git format-patch -s 1bbe3c8c197a35f79bfddaba099270a2e54ea9c7
please replace the hash code with your repo previous commit.
then you can find the patch under repo directory.
then mail your patch to configuration admin.
# git format-patch -M master // 当前分支所有超前master的提交
# git format-patch -s 4e16 // 某次提交以后的所有patch, --4e16指的是SHA1 ID
# git format-patch -1 // 单次提交
# git format-patch -3 // 从master往前3个提交的内容,可修改为你想要的数值
# git format-patch –n 07fe // -n指patch数,07fe对应提交的名称, 某次提交(含)之前的几次提交
# git format-patch -s --root origin // 从origin到指定提交的所有patch
应用patch:
先检查patch文件:# git apply --stat newpatch.patch
检查能否应用成功:# git apply --check newpatch.patch
打补丁:# git am --signoff < newpatch.patch
先检查patch文件:# git apply --stat newpatch.patch
检查能否应用成功:# git apply --check newpatch.patch
打补丁:# git am --signoff < newpatch.patch
(使用-s或--signoff选项,可以commit信息中加入Signed-off-by信息)
或git am
0 0
- git format-patch 使用方法
- git format-patch 使用方法
- git format-patch 使用方法
- git format-patch
- git format-patch
- git format-patch
- git format-patch 用法
- git format-patch
- git format-patch
- git format-patch origin 生成patch
- linux下git format-patch 生成patch
- git format-patch制作使用patch
- git format-patch经验(转)
- git format-patch 常用方法
- git format-patch 常用方法 .
- git format-patch的使用
- git-am合并git format-patch
- 补丁git format-patch && git-am用法
- Android学习(6)音频管理AudioManager-3
- 【代码片段】javascript多个多选框全选或全不选
- java电子书chm全套下载
- 爬虫停止代码
- 被自己代码坑了,关于时间差的
- git format-patch 使用方法
- 【转载】发人深省:民警枪杀平民,哪里来的权利
- Android学习(7)音频管理AudioManager-2
- C#中try catch捕捉到问题之后 后面的代码还继续执行吗
- 算法导论中如何求两个字符串的最长公共子序列
- wireshark过滤语法总结
- SQL Server2012 数据库恢复(mdf,ldf)
- 怎么提高学习或者工作效率
- DBLINK实现两个数据库间表数据同步---张金总结版