git reset HEAD~1
명령어로 잘못올려진 파일을 unstaged 하려는데 문제가 생겼다. 원격저장소 url을
git remote set-url origin [url]
명령어로 바꿔서 생긴 문제 같다.
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
git update-ref -d HEAD
명령어를 통해서 git log를 비우고 다시 커밋해서 잘못된 커밋기록을 삭제할 수 있었다.