git 的补丁使用方法

来源:互联网 发布:网络彩票开售解禁通知 编辑:程序博客网 时间:2024/04/30 22:53


生成补丁

git format-patch -2  (HEAD|SHA1)  -o 生成的目录

# git format-patch -M master         // 当前分支所有超前master的提交

生成以HEAD为基准,最后2次提交生成补丁

应用补丁

git am  < ****.patch

0 0
原创粉丝点击