git 导入补丁
Most of us that use git probably only have use GitHub -- thus is the popularity of their service. If you (or a parent project) don't use a service like GitHub, however, you'll need to export patches for review. Let's have a look at how to export a patch with git!
我们大多数使用git的人可能只使用GitHub-因此,他们的服务非常受欢迎。 但是,如果您(或父项目)不使用GitHub之类的服务,则需要导出补丁进行审核。 让我们看看如何使用git导出补丁!
导出补丁 (Exporting a Patch)
Let's say you've created a feature branch for your impending changeset, made changes, and committed those changes. Now it's time to export your commits to a patch file -- you would execute the following:
假设您已经为即将发生的变更集创建了一个功能分支,进行了变更并提交了这些变更。 现在是时候将提交导出到补丁文件了,您可以执行以下操作:
git format-patch master --stdout > my-patch-file.pat