๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๊ฐœ๋ฐœ์ƒํ™œ/Git

[GIT] Clone์œผ๋กœ ์‹ ๊ทœ ์ƒ์„ฑ ํ”„๋กœ์ ํŠธ ์ดˆ๊ธฐํ™”

by cocococo331 2022. 3. 20.

1. Clone ๋œฌ ํ”Œ์  ์›๊ฒฉ ๋Š๊ธฐ

git remote -v
git remote remove origin

 

2. ์›๊ฒฉ ๋Š์–ด์ฃผ๊ณ  ๋‚œ ๋’ค

rm -rf .git
git init
git add .
git commit -m "initial commit"

 

3. BitBucket๊ฐ€์„œ ์ƒˆ๋กœ์šด Repository ์ƒ์„ฑ

 

4. Git ์ €์žฅ์†Œ ์—ฐ๊ฒฐ ํ›„ ๊ฐ•์ œ push

git remote add origin {git remote url}
git push -u --force origin master