首页 > 解决方案 > git 补丁在 git send-email 时不声明 Content-Transfer-Encoding

问题描述

我已按照以下步骤操作。

  1. 创建了一个补丁

    git 格式补丁 -1

  2. 通过 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。

  1. 在任何 EMAIL 客户端 (Microsoft Outlook) 中打开此补丁并另存为 .patch

  2. 在新的 git repo 上应用那个新补丁 xyz.patch。它总是失败如下

    致命的:在线损坏的补丁

在这个过程中工作的任何解决方案。

标签: gitgithubpatch

解决方案


推荐阅读