1. 로컬 저장소의 .git 디렉토리 삭제

rm -rf ./.git

 

 

2. git 초기화

git init

 

 

3. git commit

git add .
git commit -m "first commit"

 

 

4. 원격 저장소 연결

git remote add origin <원격 저장소 URI>

 

 

5. 원격 저장소에 push

git push --force --set-upstream origin main

+ Recent posts