Line endings messed up in Git - how to track changes from another branch after a huge line ending fix?

后端 未结 5 898
遇见更好的自我
遇见更好的自我 2020-12-02 08:02

We are working with a 3rd party PHP engine that gets regular updates. The releases are kept on a separate branch in git, and our fork is the master branch.

This way

5条回答
  •  囚心锁ツ
    2020-12-02 08:41

    One solution (not necessarily the best one) would be to use git-filter-branch to rewrite history to always use correct line endings. This should be better solution that interactive rebase, at least for larger number of commits; also it might be easier to deal with merges using git-filter-branch.

    That is of course assuming that history was not published (repository was not cloned).

提交回复
热议问题