[git] 원격 first commit 지우기
1. orphan branch를 생성 2. master branch를 삭제 3. orphan branch를 master branch로 이름 변경 아래 명령어를 차례대로 입력하면 됨. git commit -m "message" git checkout --orphan new-branch git add --all git commit -m "Initial Commit" git branch -D master git branch -m master git push -f origin master 출처: https://medium.com/@debshish.pal/delete-entire-commit-history-of-a-git-repository-86e25602e4ef
Git
2020. 8. 14. 14:39