👨🏻‍💻iOS 공부/Git

[Github] 잔디 심을 때 유의해야 할 점

728x90
반응형

repo를 하나 만들어서 작업을 하다가 어째서인지 commit이 되지 않아, 해결 방법을 찾던 도중 아직 초기라면 다른 repo를 만들어서 시도해보라는 글을 보고, 기존 repo의 파일들을 옮기고 기존 repo를 지웠다(?)

 

지금 생각해보니 당연한 것인데... 잔디도 뽑혔다...

당연한 것... 잔디는 그 repo에 속해있던 것인데, 모를 한 번에 뽑아버렸으니, 그 안에 속하던 commit들이 다 날라가게 된 것..!

 

앞으로는 그냥 냅두거나, Private 처리 해둬야겠다.. 

 

[+ 삭제한 repo 되돌리는 법]

 

Restoring a deleted repository - GitHub Docs

Anyone can restore deleted repositories that were owned by their own user account. Organization owners can restore deleted repositories that were owned by the organization. A deleted repository can be restored within 90 days, unless the repository was part

docs.github.com

 

모든 잔디를 되돌릴 순 없는 것 같지만... 참고!

728x90
반응형