문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
git [2019/06/26 19:21] kwon37xi [파일 chmod 변경 - 특히 실행(x) 권한] |
git [2020/08/16 08:35] 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:// | ||
줄 56: | 줄 66: | ||
</ | </ | ||
- | ===== Password with Gnome-Keyring | + | ===== libsecret 기반 gnome-keyring credential |
- | * [[http://blog.iqandreas.com/git/storing-https-authentication-in-ubuntu-and-arch-linux/|GIT: Storing HTTPS Authentication in Ubuntu (and Arch Linux) | + | * [[https://www.softwaredeveloper.blog/git-credential-storage-libsecret|Libsecret |
- | # on Ubuntu | + | * [[https:// |
- | sudo apt-get install | + | * '' |
- | sudo make --directory=/ | + | * [[https:// |
- | git config --global credential.helper / | + | <code sh> |
+ | sudo apt-get install | ||
+ | cd / | ||
+ | sudo make | ||
+ | git config --global credential.helper / | ||
</ | </ | ||
+ | |||
+ | ===== SSH 인증 저장소 ===== | ||
+ | * [[https:// | ||
+ | |||
+ | ===== Password with Gnome-Keyring : Deprecated from 2014 ===== | ||
+ | * deprecated. | ||
+ | * 사용하지 말 것. '' | ||
+ | * [[http:// | ||
+ | |||
+ | ===== Password with kde ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
===== Windows ===== | ===== Windows ===== | ||
줄 132: | 줄 159: | ||
===== 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: | 줄 216: | ||
export PS1=" | export PS1=" | ||
+ | </ | ||
+ | |||
+ | ===== bash auto completion ===== | ||
+ | * 대부분의 리눅스는 git 을 설치하면 이미 bash-completion 설정 파일을 함께 설치한다.< | ||
+ | source / | ||
+ | # or | ||
+ | source / | ||
+ | </ | ||
+ | * [[https:// | ||
+ | * Arch/ | ||
+ | sudo pacman -S git bash-completion | ||
+ | # shell 재실행 | ||
</ | </ | ||
줄 265: | 줄 306: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// |