티스토리 뷰

Programming/Etc..

[GIT] ignore설정법

dd_dev 2017. 3. 4. 15:02

참조 : https://www.git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository


1. 해당 repository에 .gitignore 파일 생성

   $ > .gitignore


2. ignore 할 내용 설정

   ex)

a files
*.a

# but do track lib.a, even though you're ignoring .a files above
!lib.a

# only ignore the TODO file in the current directory, not subdir/TODO
/TODO

# ignore all files in the build/ directory
build/

# ignore doc/notes.txt, but not doc/server/arch.txt
doc/*.txt

# ignore all .pdf files in the doc/ directory
doc/**/*.pdf





'Programming > Etc..' 카테고리의 다른 글

AWS 프리티어 가이드 (linux / npm)  (599) 2019.07.20
Ionic2 강좌  (593) 2017.03.26
[생활코딩] 정규표현식  (1311) 2017.02.22
[Axis2] Eclipse 에서 WebService 만들기  (958) 2017.02.21
[apache,mysql,php] 웹 애플리케이션 만들기 (생활코딩)  (583) 2017.01.23
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
글 보관함