ํ์ผ ์ญ์ ํ๊ธฐ
1. ๋ก์ปฌ ๋๋ ํ ๋ฆฌ์ git ์ ์ฅ์์์ ๋ชจ๋ ์ญ์
$ git rm ํ์ผ๋ช
$ git commit -m "์ปค๋ฐ๋ฉ์์ง"
$ git push origin ํด๋น ๋ธ๋ฐ์น๋ช
2. ๋ก์ปฌ ๋๋ ํ ๋ฆฌ์์๋ ์ญ์ ํ์ง ์๊ณ git์์๋ง ์ญ์
$ git rm --cached ํ์ผ๋ช
$ git commit -m "์ปค๋ฐ๋ฉ์์ง"
$ git push origin ํด๋น ๋ธ๋์น๋ช
ํด๋ ์ญ์ ํ๊ธฐ
1. ๋ก์ปฌ ๋๋ ํ ๋ฆฌ์ git ์ ์ฅ์์์ ๋ชจ๋ ์ญ์
$ git rm -rf ํด๋๋ช
$ git commit -m "์ปค๋ฐ๋ฉ์์ง"
$ git push origin ํด๋น ๋ธ๋์น๋ช
2. ๋ก์ปฌ ๋๋ ํ ๋ฆฌ์ ํด๋๋ ์ ์งํ ์ฑ git ์ ์ฅ์์์๋ง ํด๋ ์ญ์ ํ๊ธฐ
$ git rm --cached -r ํด๋๋ช
$ git commit -m "์ปค๋ฐ ๋ฉ์์ง"
$ git push origin ํด๋น ๋ธ๋์น๋ช
๋๊ธ