Skip to content

Instantly share code, notes, and snippets.

@inspire12
Last active January 8, 2026 02:16
Show Gist options
  • Select an option

  • Save inspire12/e0196aadb1dfbe76f325cfed5059b3f9 to your computer and use it in GitHub Desktop.

Select an option

Save inspire12/e0196aadb1dfbe76f325cfed5059b3f9 to your computer and use it in GitHub Desktop.
# 1. 사용자 정보
git config --global user.name "서영학"
git config --global user.email "your-email@example.com"
# 2. 기본 브랜치 이름 main으로
git config --global init.defaultBranch main
# 3. github token 키체인 저장
git config --global credential.helper osxkeychain
# 3-1 windows 일 경우
# git config --global credential.helper manager-core
# 4. 색깔 켜기 (diff/log 보기 편하게)
git config --global color.ui auto
# 5. 안전한 줄바꿈 설정 (Mac/Linux 기준)
git config --global core.autocrlf input
# 6. 에디터 설정 (VSCode 쓰면)
git config --global core.editor "code --wait"
# 7. pull 시 rebase 대신 merge (헷갈리면 이게 더 무난)
git config --global pull.rebase false
# 8. log / diff 보기 편하게 pager 설정 (뒤에 추천 도구 delta 쓰면 더 좋음)
git config --global core.pager "less -+F"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment