提交代码
git push origin master
显示当前源码log
git log --graph
生成补丁
git diff commit1 commit2 >kernel.patch
打补丁
git apply kernel.patch
生成两个版本之间的补丁,并指定生成到目录里
git format-patch commit1...commit2 -o kernel_patch_dir #export patch ,kernel_patch_dir is the dir of store
打补丁
git am kernel_patch_dir/*.patch #do this patch