* [[http://jeonghwan-kim.github.io/dev/2020/02/10/git-usage.html|깃(Git) 개념과 상황별 팁]] * https://twitter.com/jayjinjay/status/1137277247797178369 * https://twitter.com/jayjinjay/status/1136673237813776384 ====== Git ====== git status ===== user.name/email 설정 ===== git config --global user.name "Mona Lisa" git config --global user.email "mona@lisa.com" ===== .gitignore가 작동하지 않을 때 ===== git rm -r --cached . git add . git commit -m "fixed untracked files" * https://jojoldu.tistory.com/307 ===== Ubuntu에서 git 비밀번호 계속 물어보지 않도록 설정 ===== password 캐시해서 암호 물어보지 않음 git config --global credential.helper cache * https://mansoo-sw.blogspot.com/2019/03/linux-macos-git.html ===== 클라이언트 ===== * https://jonas.github.io/tig/ * https://programmingsummaries.tistory.com/390 ===== LF/CRLF ===== 커밋할 때 LF로 변경 # 설정 $ git config --global core.eol lf # 설정 확인 $ git config --global --list | grep core.eol * https://www.lesstif.com/pages/viewpage.action?pageId=20776404 ===== 인증정보 캐시 ===== Windows git config --global credential.helper wincred Linux git config --global credential.helper cache * https://docs.github.com/en/github/using-git/caching-your-github-credentials-in-git ===== 특정 commit 제거 ===== git revert --strategy resolve * https://www.lainyzine.com/ko/article/git-revert-reverting-commit-in-git-repository/ ===== cherry-picking ===== git cherry-pick * https://medium.com/react-native-seoul/git-cherry-pick-%EC%82%AC%EC%9A%A9%EB%B2%95-fe1a3346bd27 {{tag>git}}