문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
git [2019/06/26 19:21] kwon37xi [파일 chmod 변경 - 특히 실행(x) 권한] |
git [2020/08/17 19:40] kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== git ====== | ====== git ====== | ||
* http:// | * http:// | ||
+ | * [[git: | ||
+ | |||
+ | ===== Ubuntu 최신 버전 install ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | <code sh> | ||
+ | sudo add-apt-repository ppa: | ||
+ | sudo apt update | ||
+ | sudo apt install git | ||
+ | </ | ||
===== Client 설정 ===== | ===== Client 설정 ===== | ||
줄 14: | 줄 24: | ||
git config --global core.filemode false | git config --global core.filemode false | ||
- | # Mac OS X 유니코드 문제 | + | # Mac OS X 유니코드 문제? 아직도 발생하나? |
- | git config --global core.precomposeunicode true | + | # git config --global core.precomposeunicode true |
</ | </ | ||
줄 36: | 줄 46: | ||
name = KwonNamSon | name = KwonNamSon | ||
</ | </ | ||
+ | * **includeIf 는 맨 마지막에 두는 것이 좋다.** 이 이후에 나오는 설정은 '' | ||
===== Ubuntu Git 최신 버전 ===== | ===== Ubuntu Git 최신 버전 ===== | ||
* https:// | * https:// | ||
줄 44: | 줄 54: | ||
</ | </ | ||
- | |||
- | ===== Password Cache ===== | ||
- | * HTTP(S) 프로토콜의 경우 명령행에서는 비밀번호 저장해두기가 곤란하다. 그래서 캐시를 사용한다. | ||
- | * [[http:// | ||
- | * Linux에서는 다음 처리로 간편하게 캐시가 끝난다.< | ||
- | # 기본 캐시 시간 15분 | ||
- | git config --global credential.helper cache | ||
- | |||
- | # 캐시 시간 지정 | ||
- | git config --global credential.helper 'cache --timeout=7200' | ||
- | </ | ||
- | |||
- | ===== Password with Gnome-Keyring | ||
- | * [[http:// | ||
- | # on Ubuntu | ||
- | sudo apt-get install libgnome-keyring-dev | ||
- | sudo make --directory=/ | ||
- | git config --global credential.helper / | ||
- | </ | ||
- | |||
- | ===== Windows ===== | ||
- | * [[https:// | ||
- | * Unicode 깨짐 문제가 발생함 [[https:// | ||
- | # cmd | ||
- | set LC_ALL=C.UTF-8 | ||
- | |||
- | # powershell | ||
- | $env: | ||
- | |||
- | # 시스템 환경변수에 넣어둘 것 | ||
- | </ | ||
===== Git Diff -> meld ===== | ===== Git Diff -> meld ===== | ||
줄 132: | 줄 111: | ||
===== Git hook ===== | ===== Git hook ===== | ||
* 기본적으로는 '' | * 기본적으로는 '' | ||
+ | * 2.9 부터는 '' | ||
* 전역 Hook 파일 설정 (git 2.9+)< | * 전역 Hook 파일 설정 (git 2.9+)< | ||
git config --global core.hooksPath / | git config --global core.hooksPath / | ||
</ | </ | ||
+ | * [[https:// | ||
===== Commit Template ===== | ===== Commit Template ===== | ||
줄 187: | 줄 168: | ||
export PS1=" | export PS1=" | ||
+ | </ | ||
+ | |||
+ | ===== bash auto completion ===== | ||
+ | * 대부분의 리눅스는 git 을 설치하면 이미 bash-completion 설정 파일을 함께 설치한다.< | ||
+ | source / | ||
+ | # or | ||
+ | source / | ||
+ | </ | ||
+ | * [[https:// | ||
+ | * Arch/ | ||
+ | sudo pacman -S git bash-completion | ||
+ | # shell 재실행 | ||
</ | </ | ||
줄 265: | 줄 258: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// |