사용자 도구

사이트 도구


git

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
git [2019/06/10 14:40] rex8312git [2025/03/31 14:56] (현재) rex8312
줄 1: 줄 1:
 +  * [[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   * https://twitter.com/jayjinjay/status/1136673237813776384
  
 ====== Git ====== ====== Git ======
 +
 +<code bash>
 +git status
 +</code>
 +
 +===== user.name/email 설정 =====
 +
 +<code bash>
 +git config --global user.name "Mona Lisa"
 +git config --global user.email "mona@lisa.com"
 +</code>
  
 ===== .gitignore가 작동하지 않을 때 ===== ===== .gitignore가 작동하지 않을 때 =====
줄 38: 줄 51:
  
   * https://www.lesstif.com/pages/viewpage.action?pageId=20776404   * https://www.lesstif.com/pages/viewpage.action?pageId=20776404
 +
 +===== 인증정보 캐시 =====
 +
 +Windows
 +<code bash>
 +git config --global credential.helper wincred
 +</code>
 +
 +Linux 
 +<code bash>
 +git config --global credential.helper cache
 +</code>
 +
 +  * https://docs.github.com/en/github/using-git/caching-your-github-credentials-in-git
 +
 +
 +===== 특정 commit 제거 =====
 +
 +<code bash>
 +git revert --strategy resolve <commit-id>
 +</code>
 +
 +  * https://www.lainyzine.com/ko/article/git-revert-reverting-commit-in-git-repository/
 +
 +===== cherry-picking =====
 +
 +<code bash>
 +git cherry-pick <commit-id>
 +</code>
 +
 +  * https://medium.com/react-native-seoul/git-cherry-pick-%EC%82%AC%EC%9A%A9%EB%B2%95-fe1a3346bd27
 +
 +{{tag>git}}
git.1560177652.txt.gz · 마지막으로 수정됨: 2024/03/23 02:37 (바깥 편집)