当我执行以下操作时:
我得到了以下错误跟踪:
$ git-p4 submit
我得到了以下错误跟踪:
error: patch failed: foo/bar/blah.h:1
error: foo/bar/blah.h: patch does not apply
Unfortunately applying the change failed!
What do you want to do?
[s]kip this patch / [a]pply the patch forcibly and with .rej files / [w]rite the patch to a file (patch.txt)
如何从这种情况中恢复并成功提交?
顺带一提,我们的P4服务器配置为使用关键词扩展(filetype = text + k),并且问题文件的第3行有一个扩展关键词。我在第1行做了更改。
我尝试删除第1行的增量,但当我重试git-p4提交时错误仍然存在。