Web Development/git
[ETC] github 아이디 여러개 사용하기
devflate
2023. 8. 5. 15:58
1. Git config 파일의 위치
- global 파일 : ~/.gitconfig
- local 파일 : [사용중인 프로젝트 폴더 경로]/.git/config
2. git config 파일 조작 방법
git config [local or global] [category].[parameter] [value]
git config --global user.name "Name"
git config --global user.email you@example.com
3. 특정 프로젝트(폴더)에서 기본 github 계정과는 다른 깃 허브 계정 사용하기
git config --local user.name "a-user-only-for-this-repository"
git config --local user.email "and-an-email-as-well@gmail.com"
이 설정 이후, 해당 프로젝트 폴더는 지정된 사용자 계정 정보로 commit / push 가 이루어진다.
(설정 확인 git config --list)
https://git-scm.com/book/ko/v2/Git%EB%A7%9E%EC%B6%A4-Git-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0
Git - Git 설정하기
8.1 Git맞춤 - Git 설정하기 지금까지 Git이 어떻게 동작하고 Git을 어떻게 사용하는지 설명했다. 이제 Git을 좀 더 쉽고 편하게 사용할 수 있도록 도와주는 도구를 살펴본다. 이 장에서는 먼저 많이
git-scm.com
https://awesometic.tistory.com/128