jes님의 블로그
작고 소중한 깃허브 잔디 본문
그동안 진행했던, 진행하고 있는 프로젝트들은 깃허브에 업로드해서 포트폴리오로 관리하고 있다.
개인 프로젝트를 추가 진행하면서 리포지토리 관리를 어떻게 효과적으로 할 수 있을지 고민하다가 개인 프로젝트만 모아놓는 리포지토리를 만드는 것으로 결정했다.
프로젝트 하나당 하나씩 만들어놨던 리포지토리를 정리한다는 이유로 이제 안 쓸 리포지토리는 삭제하면 되겠지 하면서 삭제했다.
그 결과

이랬는데

이렇게 됨....
하루에 하나씩 커밋해서 일명 잔디심기를 하고 있었는데 잔디가 사라짐. 당연함.
커밋했던 개별 리포지토리를 삭제했으니 커밋 기록도 같이 사라진 것이다..!
몇 안되는 듬성듬성 잔디지만 너무 아까워서 구글 맹검색하니 복구하는 방법이 있긴 했다.
몇 분 기다리니 복구가 되었고, 삭제했다가 복구된 리포지토리는 프라이빗으로 설정을 바꿨다.
(분명 복구됐는데 다시 새로고침하니까 잔디가 없어졌었다. 설정 다시 확인하고 몇 분 뒤 새로고침하니까 완전히 복구된 것을 확인했다. 꼭 몇 분 뒤 확인 한 번 더 해 볼 것!)
잔디 미는 것 상관없고 깔끔하게 삭제하겠다는 경우가 아니면 퍼블릭/프라이빗 설정을 바꾸는게 나은 것 같다.
교훈: 리포지토리 함부로 삭제하지말고 설정을 바꾸자.
⬇️리포지토리 삭제 방법: https://docs.github.com/en/repositories/creating-and-managing-repositories/deleting-a-repository
Deleting a repository - GitHub Docs
Only members with owner privileges for an organization or admin privileges for a repository can delete an organization repository, and these users may be prevented from deleting a repository by an organization or enterprise policy. For more information, se
docs.github.com
⬇️리포지토리 복구 방법: https://docs.github.com/en/repositories/creating-and-managing-repositories/restoring-a-deleted-repository
Restoring a deleted repository - GitHub Docs
A deleted repository can be restored within 90 days, unless the repository was part of a fork network that is not currently empty. A fork network consists of a parent repository, the repository's forks, and forks of the repository's forks. If your reposito
docs.github.com