가장 큰 원인 중 하나는 github에 큰 용량의 파일을 올리려고 했기 때문이다.
나의 경우, jupyter notebook의 .ipynb_checkpoints가 문제였다.
우선 .ipynb_checkpoints를 다 삭제했다. 괜찮을지는 모르겠다.
find . -name .ipynb_checkpoints -print0 | xargs -0 git rm -rf --ignore-unmatch
//option 1.
echo .ipynb_checkpoints >> .gitignore
//option 2.
vi .gitignore --> .gitignore 열기
// .gitignore 안에 추가해주기
.ipynb_checkpoints
*/.ipynb_checkpoints/*
$ git log
$ git reset --mixed HEAD^ // 기본
$ git reset HEAD^ // 위와 같은 방식
$ git reset HEAD~2 // 마지막 2개의 commit을 취소
https://gmlwjd9405.github.io/2018/05/25/git-add-cancle.html
https://wooono.tistory.com/252