我有一个包含Mercurial队列(mq)格式的差异文件列表的文件夹,我想要应用这些补丁。
起初我尝试了git am --patch-format=hg -- "path/to/files/"
,但这给了我错误Patch is empty. Was it split wrong?
。我尝试git am --continue
,希望这是一个不停的错误,但它会抱怨Patch does not have a valid e-mail address.
。然后我输入了git am --abort
。
我还尝试使用git am --patch-format=hg -- "path/to/files/*.diff"
和git am -- "path/to/files/*.diff"
,但这些人抱怨No such file or directory
。我必须使用更好的git工具,还是我误解了git am
的工作原理?