git의 username은 해당 계정의 아이디, identifier와 같다.
이걸 통해 깃에서 유저를 캐치할 수 있다. 기본적으로 깃허브, 깃랩, bitBucket 등등의 서비스에서는 가입시 세팅할 수 있고 이후로도 변경이 가능하다.
git config --list
현재 깃에 연결된 username을 확인하려면 아래와 같이 터미널에 입력한다.
git config --global user.name
// isGeekCode
만약 변경하고 싶다면 아래와 같이 입력한다.
git config --global user.name "Your New Name"
현재 깃에 연결된 user.eamil을 확인 하려면 아래와 같이 입력한다.
git config --global user.email
// email주소 출력
git config --global user.name "yournewemail@example.com"
git config --global user.name "Your New Name" && git config --global user.email "yournewemail@example.com"