[Git] author 변경 방법
Updated:
방법
python3 -m pip install --user git-filter-repo
- mailmap 파일 생성
- name <${new mail address}> <${old mail address}>
- ex
NEW <new@new.com> <old@old.com>
git filter-repo --mailmap ./mailmap --force
- git log를 이용하여 변경 확인
git remote add origin #{url}
- filter-repo를 하면 리모트 주소가 삭제되므로 추가 필요
git push --force origin ${branch name}
주의사항
- 해당 레파지토리를 사용하는 쪽에서는
git pull --rebase
수행 필요