Github 커밋 히스토리 삭제

  • 잘못 커밋한 파일의 히스토리를 삭제

git filter-branch --force --index-filter "git rm --cached --ignore-unmatch 'file_path/file_name'" --prune-empty --tag-name-filter cat -- --all
  • 강제로 git push

git push origin main --force

Last updated