업무를 하면서 자주 쓰는 git 명령어들 모음


📚 git

  • 👉 업무를 하면서 자주 쓰는 git 명령어들 모음

git token 저장하기

git config --global credential.helper store

git commit하면서 사용자 정보 직접 넣기

 git commit --amend --author= "git-user <git-user@email.com>" 

git log를 한줄로 보기

git log --online

아래는 결과 예시

863cd93 (HEAD -> main, origin/main) inital commit
49255d1 first commit

git proxy 설정하기, 제거하기

git config --global https.proxy https://사용자명:비밀번호@프록시주소:포트번호
git config --global --unset http.proxy

git SSL 검증 끄기

git config --global http.sslVerify false

sparse checkout

# 리포지토리 초기화 및 원격 설정
git init def
cd def
git remote add origin https://github.com/abc/def.git

# sparse-checkout 설정
git sparse-checkout init --cone
git sparse-checkout set projects/subproject

# 리포지토리 가져오기
git pull origin main

git 한글 표현

git config --global core.quotepath false