1. 최근 커밋 메시지 수정

git commit --amend -m "새로운 커밋 메시지"

git push origin main --force (수정 후 강제 푸쉬)

2. Git 사용자 및 이메일 변경, 삭제

깃 사용자(user) 이름(name) 및 이메일(email) 확인

git config user.name# 이름 확인
git config user.email# 이메일 확인

깃 사용자(user) 이름(name) 및 이메일(email) 변경

git config --global user.name	"홍길동"# 이름 변경
git config --global user.email	"[email protected]"# 이메일 변경

깃 사용자(user) 이름(name) 및 이메일(email) 삭제

# 설정된 사용자를 지울 때,
git config --unset user.name# 이름 삭제
git config --unset user.email# 이메일 삭제# gloabal로 설정된 config 사용자를 지울 경우,
git config --unset --global user.name
git config --unset --global user.email