특정파일
-
[Git] 특정 폴더 or 특정 파일 무시하여 업로드Git 2021. 11. 2. 15:46
1. 프로젝트 최상위 폴더(.git폴더가 존재하는 선상)에서 .gitignore 파일 생성 vi .gitignore 2. .gitignore 파일 작성 # 특정 폴더 무시 Release # 특정 파일 무시 tags GTATH GRTAGS GTAGS cscope.out # 특정 확장자 무시 *.mk *.elf *.bin ※ #은 주석을 처리할 때 사용한다. 3. 적용 git add . git commit -m "ignore folder and file git push -u origin master ※ 이미 git의 관리가 되어있는 폴더나 파일은 캐쉬를 지워주고 적용해야한다. 폴더인 경우 git rm --cached Release -r 파일인 경우 git rm --cached tags git rm --cac..