메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


git에서 작업하는 동안에 .gitignore파일에 지정하지 않은 파일이 ignore되는 경우가 있는데.. 

Git Bash에서 check-ignore명령을 이용하여 rule파일과 적용된 파일을 확인할 수 있다.


가. ignore가 불필요한 파일을 add해본다(예, /C/dev/workspace/sdaf/sda-common/src/main/resources/mariadb/mapper/sch/Aggr_SQL.xml


$ git add /C/dev/workspace/sdaf/sda-common/src/main/resources/mariadb/mapper/sch/Aggr_SQL.xml

The following paths are ignored by one of your .gitignore files:

sda-common/src/main/resources/mariadb/mapper/sch/Aggr_SQL.xml

Use -f if you really want to add them.


나. ignore가 불필요한 파일을 폴더를 add해본다(예, /C/dev/workspace/sdaf/sda-common/src/main/resources/*.*)

$ git add /C/dev/workspace/sdaf/sda-common/src/main/resources/*

The following paths are ignored by one of your .gitignore files:

sda-common/src/main/resources/log4j.xml

sda-common/src/main/resources/mybatis-config.xml

Use -f if you really want to add them.


다. check-ignore 명령을 이용하면 rule파일과 적용된 파일을 매핑하여 볼 수 있다.

$ git check-ignore -v /C/dev/workspace/sdaf/sda-common/src/main/resources/*.*

"C:\Users\gooper\Documents\gitignore_global.txt":28:*.xml   C:/dev/workspace/sdaf/sda-common/src/main/resources/log4j.xml

"C:\Users\gooper\Documents\gitignore_global.txt":28:*.xml   C:/dev/workspace/sdaf/sda-common/src/main/resources/mybatis-config.xml

번호 제목 날짜 조회 수
» .gitignore파일에 지정되지 않은 파일이 ignore되는 경우 확인방법 2016.11.22 151
320 github에 있는 프로젝트와 로컬에서 작업한 프로젝트 합치기 2016.11.22 98
319 특정 커밋 시점(commit id를 기준으로)으로 돌리기(reset) 2016.11.21 131
318 Github를 이용하는 전체 흐름 이해하기 2016.11.18 96
317 특정 단계의 commit상태로 만들기(이렇게 하면 중간에 반영된 모든 commit를 history가 삭제된다) 2016.11.17 113
316 git 초기화(Windows에서 Git Bash사용) 2016.11.17 233
315 spark notebook 0.7.0설치및 설정 2016.11.14 196
314 참고할만한 spark예제를 설명하는 사이트 2016.11.11 146
313 Kafka Offset Monitor로 kafka 상태 모니터링 하기 file 2016.11.08 601
312 Eclipse실행시 Java was started but returned exit code=1이라는 오류가 발생할때 조치방법 2016.11.07 445
311 [SparkR]SparkR 설치 사용기 1 - Installation Guide On Yarn Cluster & Mesos Cluster & Stand Alone Cluster file 2016.11.04 135
310 데이타 분석및 머신러닝에 도움이 도움이 되는 사이트 2016.11.04 97
309 java스레드 덤프 분석하기 file 2016.11.03 150
308 centos 6에서 mariadb 5.1 to 10.0 으로 upgrade 2016.11.01 167
307 Spark Streaming 코드레벨단에서의 성능개선 2016.10.31 74
306 Flume과 Kafka를 사용한 초당 100만개 로그 수집 테스트 file 2016.10.31 1081
305 Flume을 이용한 데이타 수집시 HBase write 성능 튜닝 file 2016.10.31 681
304 How-to: Build a Complex Event Processing App on Apache Spark and Drools file 2016.10.31 284
303 How-to: Tune Your Apache Spark Jobs (Part 2) file 2016.10.31 121
302 mybatis와 spring을 org.apache.commons.dbcp2.BasicDataSource의 DataSource로 연동할때 DB설정(참고) 2016.10.31 1032
위로