scm system & vcs
[git] repository history 삭제 (초기화)
張's blog
2021. 5. 16. 14:36
- remote branch 삭제
https://www.lesstif.com/gitbook/git-delete-remote-branch-20776547.html
- repository history 삭제
https://jootc.com/p/201909143109
[Git] 커밋 히스토리 삭제(초기화)하여 다시 푸시하기 - JooTC
Git 커밋 히스토리 삭제 git commit 초기화 방법 Git을 사용하여 소스코드 관리를 하는 개발자는 자신의 리포지토리(Repository)가 공개 상태일 때 간혹 민감한 정보가 포함된 코드가 커밋(commit)되는 경
jootc.com
- git HEAD 변경
git remote set-head origin <remote branch name>
OR
git remote set-head origin -a (HEAD 추가)
git remote set-head origin -d (HEAD 삭제)
https://seongjins.tistory.com/228