git config (2) 썸네일형 리스트형 [#Git] Git 명령어 정리, Config 설정 기본 명령어부터 자주 쓰는 Git 명령어를 정리해 놓으려고 한다 계속해서 추가할 예정 Git Config 설정 git config --global user.name "이름" git config --global user.email "이메일" Git Config 확인 git config --list Git Config 삭제 git config --unset --global user.name git config --unset --global user.email 원격 저장소 연결 해제 git remote rm origin 혹은 git remote remove origin [#Git] Git에서 autocrlf 설정하기, warning: LF will be replaced by CRLF in package-lock.json 해결 CR : Carriage Return (₩r) LF : Line Feed (₩n) Window랑 Mac에서 줄바꿈을 할 때 사용하는 방식이 다르다 Windows 는 CRLF(\r\n) 을 기본으로 사용하고 Unix/Linux 에서는 LF(\n) 만을 사용한다 따라서 Github에 코드를 올릴 때도 같은 방식이 적용되기 때문에 windows mac에서 코드를 push, pull 했을 때 코드를 수정한 게 없음에도 불구하고 서로 다른 개행 문자 때문에 코드를 수정한 것처럼 인식하게 된다 windows git config --global core.autocrlf true WindowsGit \r\n->\n 으로 바꿔서 올림 \r\n 이전 1 다음