반응형
Git로 전환을 해야 하는데 제 소중한 비밀번호가 그대로 올라가 있었습니다.
레파지토리를 지우기도 뭐하고 해서 비밀번호 없이 git를 그대로 초기화한다음 다시 푸시하면 됩니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf .git | |
git init | |
git add . | |
git commit -m "초기 커밋" | |
git remote add origin https://github.com/ryush00/이름.git | |
git push origin master —force |
주의사항 (2022-03-23 추가)
이제 와서 보니 이 글대로 진행하시면 절대 안됩니다. git push --force를 사용한 것과 마찬가지기에 저장소가 꼬이거나 모든 커밋이 날라갈 수 있습니다. 절대 이런식으로 조치하면 안되고 아래 링크를 참고하시기 바랍니다.
반응형