※ 개인 학습용 글입니다. 궁금한 점이나 수정사항이 있을 시 댓글을 달아주세요.
1. 설정정보 확인
git config --llist
git config -l
git config -l 도 마찬가지로 같게 출력된다.
2. 전역으로 설정
git config --global user.name <github-name>
git config --global user.email <github 등록 email>
3. Repository마다 다른 사용자 계정 사용 ( global 제외 )
git config --local user.name <github-name>
git config --local user.email <github 등록 email>
4. 설정된 계정 정보 삭제
# global
git config --unset --global user.name
git config --unset --global user.email
# local
git config --unset user.name
git config --unset user.email
5. vscode를 기본 에디터로 설정
git config --global core.editor "code --wait --disable-extensions"
'웹 개발 > git, github' 카테고리의 다른 글
[git_07] 협업하기 (0) | 2024.01.17 |
---|---|
[git_06] branch (0) | 2024.01.17 |
[git_05] reset (0) | 2024.01.17 |
[git_04] git clone/ pull/ .gitignore 파일 (0) | 2024.01.16 |
[git_01] Mac os 에서 Github 사용하는 법 (0) | 2024.01.11 |