검색결과 리스트
글
git ignore 파일 만들기
Git
2015. 12. 28. 23:41
.gitignore 를 만들어 보자
add, commit, push 등 git명령어에서 제외(파일,디렉토리) 설정하는 기능.
# gitignore 파일 만들기 /=====================
--------------------------------------------------------------------
$ vi ~/.gitignore
_data/ : _data 디렉토리 제외
abc.php : abc.php 파일은 제외
a*.php : a 로 시작하고 확장자가 .php 인 파일
sftp*.json : 파일제외
# git config 에 등록 /=====
-----------------------------------
$ git config --global core.excludesfile ~/.gitignore
#확인하는 방법 /========
-----------------------------------
$ cat ~/.gitconfig
[core]
excludesfile = /home/color106/.gitignore
'Git' 카테고리의 다른 글
브랜치 생성, 삭제, 변경 (0) | 2015.08.26 |
---|---|
Git 초기 셋팅 (0) | 2015.03.05 |