git

config 수정하기

thingsu 2020. 11. 28. 23:16

git을 입맛에 맞게 변경하려고 한다.

  • /etc/gitconfig: 모든 사용자와 모든 레포에 적용

      git config --system
  • ~/.gitconfig: 특정 사용자에게 적용

      git config --gloabl
  • .git/config: 특정 레포에 적용

      git config --local

계정 설정

git config --local user.name "사용자명"
git config --local user.email "이메일"

설정 확인

git config --list

그럼에도 push가 안될 때?

git remote set-url origin https://git아이디@github.com/유저명/레포주소
// https://m0su@github.com/m0su/JustWatch