-
.gitignore 재설정Today I Learned 2019. 12. 26. 16:59
문제
git 으로 관리하지 않을 디렉토리들이 이미 포함되어 버린 경우 나중에 .gitignore 에 추가하여도 이미 해당 파일은 track 하는 상태에게 제거되지 않는다.
해결
이를 해결하기 위해서 일단 .gitignore를 만든 후, 아래의 절차에 따라 tracking 을 다 삭제하고 새로 재설정한다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters$ git rm -r --cached . or $ git rm -r --cached [file] $ git add . $ git commit -m "Fixed untracked files" 출처
http://wincloud.link/plugins/servlet/mobile?contentId=38961166#content/view/38961166
컨플루언스 모바일 - Confluence.winCloud.Link
wincloud.link
'Today I Learned' 카테고리의 다른 글
moment (0) 2019.12.29 kill port (0) 2019.12.29 MYSQL JOIN문 (0) 2019.12.27 Node.js를 이용한 회원가입 기능 구현 (0) 2019.12.25 Socket.io를 이용한 채팅 서버 구축 (0) 2019.12.24