본문 바로가기

VCS

git user.name user.email 변경하기 filter-branch

명령어 작성 전에 프로젝트의 최상위 폴더로 올라 가야 한다.

 

OLD_EMAIL="your-old-email@example.com" // 사라져야 할 이메일 입력

CORRECT_NAME="Your Correct Name"  // 작성되어야 할 이름 입력

CORRECT_EMAIL="your-correct-email@example.com" // 작성되어야 할 이메일 입력

 

이후 나오는 명령어로 origin에 강제 push

 

https://help.github.com/en/github/using-git/changing-author-info

 

Changing author info - GitHub Help

GitHub.com Using Git Using advanced Git commands Changing author info Changing author info To change the name and/or email address recorded in existing commits, you must rewrite the entire history of your Git repository. Mac Windows Linux All Warning: This

help.github.com

 

'VCS' 카테고리의 다른 글

source tree와 github 연동하기  (0) 2019.04.15
remote: Repository not found. git clone 안될 때  (0) 2019.03.30
reset, revert 차이 만화  (0) 2018.08.24
Git 설명서  (0) 2018.08.24