Vagrant w/ windows as host, files don´t run on vm due to crlf

前端 未结 2 1372
[愿得一人]
[愿得一人] 2021-01-07 00:57

I´m trying to set up vagrant with windows as host and ubuntu as guest.

I want to commint vagrant file itself to the repo so the steps would be, clone repo in windows

2条回答
  •  萌比男神i
    2021-01-07 01:40

    Found the solution,

    for git, set the config like so: git config --global core.autocrlf input

    source: http://blog.xjtian.com/post/54399466362/vagrant-tips-for-windows-users

提交回复
热议问题