기타
[Git] 깃 저장소 초기화하기
F12:)
2024. 4. 20. 12:55
과거 내가 add했던 기록과 같은 모든 것을 지우고 다시 레포에 올리는 방법.
rm -rf .git
git init
이 두개만 해도 충분히 초기화가 되지만.. git 폴더를 삭제했다면 원격지 주소와 유저 정보를 다시 입력해야한다.
git remote add origin [repository 주소]
git config --global user.email [사용자 email]
git config --global user.name [사용자 name]