문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
git [2019/11/06 13:49] kwon37xi |
git [2020/09/16 12:17] kwon37xi [Git Diff/Merge -> kdiff3] |
||
---|---|---|---|
줄 2: | 줄 2: | ||
* http:// | * http:// | ||
* [[git: | * [[git: | ||
+ | * [[git: | ||
+ | |||
+ | ===== Ubuntu 최신 버전 install ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | <code sh> | ||
+ | sudo add-apt-repository ppa: | ||
+ | sudo apt update | ||
+ | sudo apt install git | ||
+ | </ | ||
===== Client 설정 ===== | ===== Client 설정 ===== | ||
줄 15: | 줄 25: | ||
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 |
</ | </ | ||
줄 37: | 줄 47: | ||
name = KwonNamSon | name = KwonNamSon | ||
</ | </ | ||
+ | * **includeIf 는 맨 마지막에 두는 것이 좋다.** 이 이후에 나오는 설정은 '' | ||
===== Ubuntu Git 최신 버전 ===== | ===== Ubuntu Git 최신 버전 ===== | ||
* https:// | * https:// | ||
줄 45: | 줄 55: | ||
</ | </ | ||
- | + | ===== Git Diff/Merge -> kdiff3 | |
- | ===== Password Cache ===== | + | * [[https://docs.kde.org/trunk5/en/extragear-utils/ |
- | * HTTP(S) 프로토콜의 경우 명령행에서는 비밀번호 저장해두기가 곤란하다. 그래서 캐시를 사용한다. | + | < |
- | * [[http://dogfeet.github.io/articles/2013/git-password-caching.html|Git | + | [diff] |
- | * Linux에서는 다음 처리로 간편하게 캐시가 끝난다.< | + | |
- | # 기본 캐시 시간 15분 | + | [difftool " |
- | git config --global credential.helper cache | + | |
- | + | [difftool] | |
- | # 캐시 시간 지정 | + | |
- | git config --global credential.helper 'cache --timeout=7200' | + | |
- | </ | + | |
- | + | [merge] | |
- | ===== Password with Gnome-Keyring | + | tool = kdiff3 |
- | * [[http:// | + | [mergetool] |
- | # on Ubuntu | + | |
- | sudo apt-get install libgnome-keyring-dev | + | |
- | sudo make --directory=/usr/share/doc/ | + | |
- | git config --global credential.helper / | + | [mergetool " |
- | </ | + | path = / |
- | + | ||
- | ===== Windows ===== | + | |
- | | + | |
- | * Unicode 깨짐 문제가 발생함 | + | |
- | # cmd | + | |
- | set LC_ALL=C.UTF-8 | + | |
- | + | ||
- | # powershell | + | |
- | $env:LC_ALL=' | + | |
- | + | ||
- | # 시스템 환경변수에 넣어둘 것 | + | |
</ | </ | ||
줄 190: | 줄 189: | ||
export PS1=" | export PS1=" | ||
+ | </ | ||
+ | |||
+ | ===== bash auto completion ===== | ||
+ | * 대부분의 리눅스는 git 을 설치하면 이미 bash-completion 설정 파일을 함께 설치한다.< | ||
+ | source / | ||
+ | # or | ||
+ | source / | ||
+ | </ | ||
+ | * [[https:// | ||
+ | * Arch/ | ||
+ | sudo pacman -S git bash-completion | ||
+ | # shell 재실행 | ||
</ | </ | ||