Updated:

less than 1 minute read

방법

  1. python3 -m pip install --user git-filter-repo
  2. mailmap 파일 생성
    • name <${new mail address}> <${old mail address}>
    • ex
      • NEW <new@new.com> <old@old.com>
  3. git filter-repo --mailmap ./mailmap --force
  4. git log를 이용하여 변경 확인
  5. git remote add origin #{url}
    • filter-repo를 하면 리모트 주소가 삭제되므로 추가 필요
  6. git push --force origin ${branch name}


주의사항

  • 해당 레파지토리를 사용하는 쪽에서는 git pull --rebase 수행 필요