ํŒŒ์ผ ์‚ญ์ œํ•˜๊ธฐ

# ๋กœ์ปฌ ๋””๋ ‰ํ† ๋ฆฌ, git์—์„œ ์‚ญ์ œ
git rm test.txt

# git์—์„œ๋งŒ ์‚ญ์ œ
git rm --cached test.txt

test.txt ์ž๋ฆฌ์— ์›ํ•˜๋Š” ํŒŒ์ผ๋ช…์„ ์ž…๋ ฅํ•œ๋‹ค.

ํด๋” ์‚ญ์ œํ•˜๊ธฐ

# ๋กœ์ปฌ ๋””๋ ‰ํ† ๋ฆฌ, git์—์„œ ์‚ญ์ œ
git rm -r test/

# git์—์„œ๋งŒ ์‚ญ์ œ
git rm --cached -r test/

test/ ์ž๋ฆฌ์— ์›ํ•˜๋Š” ํŒŒ์ผ๋ช…์„ ์ž…๋ ฅํ•œ๋‹ค.

 

ํŒŒ์ผ๋ช…, ํด๋”๋ช… ํ˜•์‹

# ํ•˜๋‚˜์˜ testํŒŒ์ผ ์‚ญ์ œ
text.txt

# ํ•˜๋‚˜์˜ testํด๋” ์‚ญ์ œ
test/

# ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด ๋ชจ๋“  testํŒŒ์ผ ์‚ญ์ œ
**/test.txt

# ํ™•์žฅ์ž txt ์‚ญ์ œ
*.txt

 

rm ํ›„ commit > push !

728x90

'๐Ÿ”จTOOL > Git' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

Netlify๋กœ ๋ฐฐํฌํ•˜๊ธฐ  (0) 2022.03.15
repository ์—ฐ๊ฒฐํ•˜๊ธฐ  (0) 2022.03.15
git ์ดˆ๊ธฐ ์„ค์ •  (0) 2022.03.15
Markdown ๋ฌธ๋ฒ• ์ •๋ฆฌ  (0) 2022.03.10
gitignore : ์ œ์™ธํ•˜๊ณ  push ํ•˜๊ธฐ  (0) 2021.08.09

BELATED ARTICLES

more