Applying a diff file with git

后端 未结 6 1587
一个人的身影
一个人的身影 2021-02-18 20:50

So I was trying to use apply a diff file to my git dev branch. The diff I wanted to apply was this one here: https://github.com/mbabker/joomla-cms/compare/JHtml_move.patch

6条回答
  •  逝去的感伤
    2021-02-18 21:21

    I also had the same problem:

    fatal: git apply: bad git-diff - expected /dev/null on line 47
    

    Yet line 47 reads --- /dev/null. The problem I found was that the line endings were in Windows format instead of UNIX format. Converting the line endings to UNIX format in Notepad++ fixed the problem for me.

提交回复
热议问题