티스토리 뷰

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

'git' 카테고리의 다른 글

fatal: the remote end hung up unexpectedly 오류 해결  (5) 2021.05.23
git author 한번에 모두 바꾸기  (0) 2021.02.04
author 바로잡기  (0) 2020.11.28
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday