git - git 补丁在 git send-email 时不声明 Content-Transfer-Encoding
问题描述
我已按照以下步骤操作。
创建了一个补丁
git 格式补丁 -1
通过 git send-email 发送
git send-email --subject-prefix="XYZ" --to=some@email.com(补丁文件)
它给出以下输出
The following files are 8bit, but do not declare a Content-Transfer-Encoding.
0001-xyz.patch
Which 8bit encoding should I declare [UTF-8]? y
Are you sure you want to use <y> [y/N]? y
我不确定我应该在这里给出什么。我在这里试过 Y & N。
在任何 EMAIL 客户端 (Microsoft Outlook) 中打开此补丁并另存为 .patch
在新的 git repo 上应用那个新补丁 xyz.patch。它总是失败如下
致命的:在线损坏的补丁
在这个过程中工作的任何解决方案。
解决方案
推荐阅读
- java - 如何在用户释放按键后隐藏默认的 Android 软键盘
- javascript - 用于匹配完整 URL 的 JS RegEx
- ios - 从视图中执行 Segue
- swift - Scheme 中可爱的 lambda 技巧:在 Swift 中可能吗?
- c# - 如何将文本从一个表单中的 DataGridView 传输到另一个表单中的私有 TextBox?
- python - 在 generic.UpdateView 中传递上下文变量
- excel - DAX 度量相关表 事实表中的两个 ID 列
- python - 如何忽略python中asyncio的SL错误?
- jquery - onchange 后选择不更新
- python - 把线放在一条直线上,计算空虚