우선 global 옵션을 빼고 유저를 설정한다.
그러면 해당 프로젝트에서는 해당 계정으로 커밋을 하게 된다.
git config user.name 당신의_이름
git config user.email 당신의_이메일
github에서 해당계정에 연동된 ssh-key가 없다면 이 역시 생성하자
ssh-keyget -t ed25519 -C "당신의_이메일"
Generating public/private ed25519 key pair.
Enter file in which to save the key: <기존키와_중복되지않는_sshkey_신규path와_신규파일명>
그리고 생성된 .pub
키를 github ssh 로 등록하면 됨.
git config --add --local core.sshCommand 'ssh -i <위에입력한_ssh키중_private키>'