엄지월드

git push 잔디 특정 프로젝트 본문

Server&DevOps/Git

git push 잔디 특정 프로젝트

킨글 2024. 5. 5. 15:42
반응형

git 계정을 회사에서도 사용하고 개인으로도 사용하는 경우,

나의 repository에 잔디를 심고 싶은데 push하면 나의 계정으로 push되지 않는 경우가 있다.

 

이 경우, 특정 project에서만 나의 계정을 사용하고 싶은 경우 아래와 같이 설정해주면 된다.

git config user.email "email@email.com"
git config user.name "myname1024"

 

설정 후 아래와 같이 확인 가능하다.

git config user.name
git config user.email
Comments