본문 바로가기
OpenSource

git config 설정하기

by egas 2021. 10. 1.

VSCode에서 id/pw 설정을 자동 저장하고 싶으면 아래 명령어를 입력하자.

 

git config --global credential.helper store

https://git-scm.com/docs/git-credential-store

 

이미 정보가 있다면 아래 명령어로 삭제해주자.

git config --unset user.name
git config --unset user.email

 

아래는 전역 설정을 지워주는 명령어.

git config --unset --global user.name
git config --unset --global user.email

 

현재 git config를 아래 명령어로 확인할 수 있다.

git config --list

 

아래 명령어로 추가해보자.

git config user.name "hochan222"
git config user.email "hochan049@gmail.com"

 

전역 설정은 아래와 같이 설정한다.

git config --global user.name "hochan222"
git config --global user.email "hochan049@gmail.com"

 

 

728x90

'OpenSource' 카테고리의 다른 글

ripgrep 소개  (0) 2021.07.30
gource 소개  (0) 2021.07.28
Github changelogs  (0) 2021.07.18
gh-pages 로 배포하기  (0) 2021.07.17
Github multiple authors  (0) 2021.07.17

댓글