티스토리 뷰

윈도우 파이참에서 bash 작업 후 리눅스 서버로 보내면 계속 Line separator 이슈가 났다.

공식 문서 Configuring Line Separators—PyCharm (jetbrains.com) 대로 해도 잠시 뿐

창 끄고 돌아오면 다시 crlf 로 돌아가있다. 

찾아보니 git 설정을 변경하면 되었다. 아래 참조

 

 

# check current config
git config -l 

# change the value
git config core.autocrlf false
git config core.eol lf

# make sure
git config --get core.autocrlf
git config --get core.eol

# checkout
git ls-files -z | xargs -9 rm
git checkout .

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함