git
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| git [2019/01/20 03:27] – rex8312 | git [2025/06/29 16:07] (현재) – [cherry-picking] rex8312 | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| + | * [[http:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| ====== Git ====== | ====== Git ====== | ||
| - | * .gitignore가 작동하지 않을 때 | + | <code bash> |
| + | git status | ||
| + | </ | ||
| + | |||
| + | ===== user.name/ | ||
| + | |||
| + | <code bash> | ||
| + | git config --global user.name "Mona Lisa" | ||
| + | git config --global user.email " | ||
| + | </ | ||
| + | |||
| + | ===== .gitignore가 작동하지 않을 때 ===== | ||
| <code bash> | <code bash> | ||
| 줄 9: | 줄 24: | ||
| </ | </ | ||
| * https:// | * https:// | ||
| + | |||
| + | ===== Ubuntu에서 git 비밀번호 계속 물어보지 않도록 설정 ===== | ||
| + | |||
| + | password 캐시해서 암호 물어보지 않음 | ||
| + | |||
| + | git config --global credential.helper cache | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | ===== 클라이언트 ===== | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | ===== LF/CRLF ===== | ||
| + | |||
| + | 커밋할 때 LF로 변경 | ||
| + | |||
| + | <code bash> | ||
| + | # 설정 | ||
| + | $ git config --global core.eol lf | ||
| + | | ||
| + | # 설정 확인 | ||
| + | $ git config --global --list | grep core.eol | ||
| + | </ | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | ===== 인증정보 캐시 ===== | ||
| + | |||
| + | Windows | ||
| + | <code bash> | ||
| + | git config --global credential.helper wincred | ||
| + | </ | ||
| + | |||
| + | Linux | ||
| + | <code bash> | ||
| + | git config --global credential.helper cache | ||
| + | </ | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | |||
| + | ===== 특정 commit 제거 ===== | ||
| + | |||
| + | <code bash> | ||
| + | git revert --strategy resolve < | ||
| + | </ | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | ===== cherry-picking ===== | ||
| + | |||
| + | <code bash> | ||
| + | git cherry-pick < | ||
| + | </ | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | ===== git submodule ===== | ||
| + | |||
| + | <code bash> | ||
| + | $ git clone --recursive https:// | ||
| + | |||
| + | # 클론 후에는 .. | ||
| + | $ git submodule update --init --recursive | ||
| + | </ | ||
| + | |||
| + | |||
| + | {{tag> | ||
git.1547954844.txt.gz · 마지막으로 수정됨: (바깥 편집)