문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
git [2019/06/08 17:10] kwon37xi [Bash Prompt] |
git [2020/04/01 16:07] kwon37xi [Bash Prompt] |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== git ====== | ====== git ====== | ||
* http:// | * http:// | ||
+ | * [[git: | ||
===== Client 설정 ===== | ===== Client 설정 ===== | ||
줄 23: | 줄 24: | ||
* 이걸 해도 자소 분리 현상이 발생하면 '' | * 이걸 해도 자소 분리 현상이 발생하면 '' | ||
* SourceTree 사용자는 Preferences에서 **" | * SourceTree 사용자는 Preferences에서 **" | ||
+ | |||
+ | ===== Directory별 Include 설정 ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * '' | ||
+ | [includeIf " | ||
+ | path = .git_personal_projects | ||
+ | </ | ||
+ | * '' | ||
+ | [user] | ||
+ | email = kwon37xi@gmail.com | ||
+ | name = KwonNamSon | ||
+ | </ | ||
===== Ubuntu Git 최신 버전 ===== | ===== Ubuntu Git 최신 버전 ===== | ||
줄 119: | 줄 133: | ||
===== 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 ===== | ||
줄 174: | 줄 190: | ||
export PS1=" | export PS1=" | ||
+ | </ | ||
+ | |||
+ | ===== bash auto completion ===== | ||
+ | * [[https:// | ||
+ | * Arch/ | ||
+ | sudo pacman -S git bash-completion | ||
+ | # shell 재실행 | ||
</ | </ | ||
줄 217: | 줄 240: | ||
</ | </ | ||
- | ===== 파일 chmod 변경 - 특히 실행(x) 권한 ===== | + | ===== Windows 등에서 |
* [[https:// | * [[https:// | ||
- | * '' | + | |
- | * '' | + | |
- | * '' | + | * '' |
+ | * '' | ||
* commit 한다. | * commit 한다. | ||
줄 251: | 줄 275: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// |