win10용 docker를 사용하여 이미지를 빌드하고 이미지에 복사된 소스 파일의 줄바꿈이 변경되었는지 확인합니다.

WBOY
풀어 주다: 2016-09-27 14:18:08
원래의
1597명이 탐색했습니다.

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을 사용해 코드를 가져오고 업데이트하고 싶어서 줄바꿈 문자가 변경되면 코드를 업데이트할 수 없습니다...
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을 사용해 코드를 가져오고 업데이트하고 싶어서 줄바꿈 문자가 변경되면 코드를 업데이트할 수 없습니다...
Docker가 수정되는 것을 방지할 수 있는 방법이 있나요? 내 개행 문자?

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
최신 이슈
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!