git diff指令如下:
<code># git diff selenium60.sh diff --git a/selenium60.sh b/selenium60.sh index 6ce5f9f..8893fb3 100644 --- a/selenium60.sh +++ b/selenium60.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/sh^M java -Dphantomjs.binary.path=vendor/bin/phantomjs -Dwebdriver.firefox.profile=default -Dwebdriver.reap_profile=true -jar vendor/bin/selenium-standalone.jar -timeout 60 -browserTimeout 60 \ No newline at end of file</code>
因為我想繼續在生產環境中用git來pull更新程式碼,所以一旦換行符被改了就沒法更新程式碼了…
有什麼辦法讓docker不修改我的換行符麼?
git diff指令如下:
<code># git diff selenium60.sh diff --git a/selenium60.sh b/selenium60.sh index 6ce5f9f..8893fb3 100644 --- a/selenium60.sh +++ b/selenium60.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/sh^M java -Dphantomjs.binary.path=vendor/bin/phantomjs -Dwebdriver.firefox.profile=default -Dwebdriver.reap_profile=true -jar vendor/bin/selenium-standalone.jar -timeout 60 -browserTimeout 60 \ No newline at end of file</code>
因為我想繼續在生產環境中用git來pull更新程式碼,所以一旦換行符被改了就沒法更新程式碼了…
有什麼辦法讓docker不修改我的換行符麼?