728x90
.gitignore ํ์ผ์ Git์ root ๋๋ ํ ๋ฆฌ์ ์ ์ฅ๋์ด, Git Repository๋ Staging Area์ ์ถ๊ฐ๋์ง ๋ง์์ผํ๋ ํด๋๋ ํ์ผ์ ์ ์ํ๋ ํ์ผ์ด๋ค. .gitignore์ ์ ์๋ ํ์ผ์ด๋ ํด๋๋ Staging ๋์ง ์๊ธฐ ๋๋ฌธ์ tracking ๋์ง๋ ์๋๋ค. ๊ทธ๋์ git status๋ฅผ ์ด์ฉํ์ ๋ ๋ณด์ด์ง ์๋๋ค.
๊ฐ๋ .gitignore๋ฅผ ์ค์ ํด๋ ์๋ํ์ง ์์ ๋๊ฐ ์๋ค. ignore์ฒ๋ฆฌ๋ ํ์ผ์ด ์๊พธ changes์ ๋์จ๋ค. ์ด๋๋ git์ ์บ์๋ฅผ ์ญ์ ํ๊ณ ์ปค๋ฐ, ํธ์ํ๋ฉด ์ ๋ฆฌ๊ฐ ๋๋ค.
$ git rm -r --cached .
$ git add .
$ git commit -m "fixed untracked files"
์ฐธ์กฐ
https://git-scm.com/docs/gitignore
https://stackoverflow.com/questions/11451535/gitignore-is-ignored-by-git
728x90
'development' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| ์๋งจํฑ ํ๊ทธ(Semantic Tag) (0) | 2022.12.25 |
|---|---|
| ์ด๋ฒคํธ ๋ฒ๋ธ๋ง(Event Bubbling)๊ณผ ์บก์ฒ๋ง(Event Capture) (0) | 2022.12.14 |
| ๋คํฌ๋ชจ๋ CSS (0) | 2022.06.21 |
| MySQL (0) | 2022.06.18 |
| Mac ๋งฅ์์ Xampp MySQL ์ค์ ํ๊ธฐ (2) | 2022.02.03 |