KimsFactory*

[GIT] .gitignore 파일 업데이트 본문

Server

[GIT] .gitignore 파일 업데이트

KimsFactroy 2017. 2. 10. 12:37

가끔 작업하다보면 .gitignore 를 수정할 일이 생긴다.. 그때 단순히 .gitignore 파일만 변경하면 안되고 아래와 같이 캐쉬를 지워주고 다시 commit 해야한다.


[GIT] .gitignore 파일 업데이트

.gitignore 파일을 수정한 후


$ git rm -r --cached .

$ git add *

$ git commit -m ".gitignore update"

$ git push

Comments