Cloning a git repo, and it already has a dirty working directory… Whaaaaa?

后端 未结 7 1708
北荒
北荒 2020-11-30 04:54

So, I\'m confused as to what\'s going on. I\'ve never hacked on the linux kernel, so maybe this is commonplace. If that\'s the case, sorry for the newb question.

<         


        
7条回答
  •  生来不讨喜
    2020-11-30 05:13

    The comments are most likely correct in their suspicion of line endings. Try setting this option:

    git config --global core.autocrlf true
    

    Then re-clone the repository.

    Use a value of true on windows and input on OSX/Unix.

    Take a look at this Github help page for more information.

提交回复
热议问题