Git: 사용자와 이메일 정보 설정 및 확인하기-git config
·
Computer/Linux
시작하기기본적으로 git 에서 명령어를 실행은 다음과 같음.git 명령어 -옵션(or --옵션) 인자git 에서 모든 설정은 사용자에게 global하게 적용되는 것은 .gitconfig 에 저장되고, 프로젝트별로 적용되는 것은 해당 프로젝트 루트 밑의 .git/config에 저장됨. 종류는 다음과 같음System config: /etc/gitconfigGlobal config: ~/.configLocal config: [프로젝트루트디렉토리]/.git/config이를 git config 명령어로 편집가능함git config --global ... # global설정 처리git config ... # 해당 프로젝트 설정 처리git config list --global # global 설정 확..
GIT : 기본 Editor 설정.
·
Computer/ETC
GIT : 기본 Editor 설정. git config --global core.editor 명령으로 어떤 Editor 를 사용할지 선택 가능함git config --global core.editor "vim" # recommand# git config --global core.editor "code --wait" #vim을 모른다면.# git config --global core.editor "nano" #vim 모르고 linux# git config --global core.editor "notepad" #vim 모르고 windows이 명령어는 .gitconfig 파일을 편집하는 것이니 직접 해당 파일을 편집해도 됨 (다음 내용 참고)또는 .gitconfig에 다음 내용 추가.editor=vim많은 ..
Git: autocrlf 설정: 개행문자
·
Computer/ETC
Git: autocrlf 설정: 개행문자(new line)core.autocrlf : git에서 파일을 git repository 에 업로드할 때 개행문자(new line)를 처리하는 option.core.autocrlf : newline관련 설정.core.autocrlf 는 다음과 같은 세가지 mode를 지원.core.autocrlf = false (default)파일 내용을 그대로 반영.비추천core.autocrlf = truegit repository에 업로드 할 때, 모든 개행문자를 LF(line feed, linux와 mac에서의 new line)로 변경.단, local로 체크아웃할 때는 LF를 CRLF(carriage return + line feed, windows에서의 new line)로 ..