메뉴 건너뛰기

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

번호 제목 날짜 조회 수
321 데이타 분석및 머신러닝에 도움이 도움이 되는 사이트 2016.11.04 362
320 원격에 있는 git를 받은후 기존repository삭제후 새로운 리포지토리에 연결하여 소스 등록 2019.07.13 360
319 [Hue]Hue의 메타정보를 담고 있는 desktop_document테이블과 desktop_document2의 관계 2022.05.09 359
318 원격의 origin/master를 기준으로 dev branch를 만들어 작업후 원격의 origin/dev에 push하는 방법 file 2016.11.22 359
317 SPARQL의 유형, SPARQL 만들기등에 대한 설명 2016.02.18 358
316 Scala를 이용한 Streaming예제 2018.03.08 357
315 Runtime.getRuntime().exec(cmd) sample 소스 2015.11.19 356
314 sparql 1.1 BIND(if() as ?bind변수) 버그로 추정되는 문제점및 해결방안 -> select 문에 (if(,,) as ?bind변수) file 2016.01.21 355
313 tablet별 disk사용량 확인하는 방법 2021.08.27 354
312 console명령과 API비교 2015.12.21 354
311 [shell script]test.txt에 space로 분리된 내용을 일어들이는 예제 2017.02.21 353
310 kafka 0.9.0.1버젼의 producer와 kafka버젼이 0.10.0.1인 consumer가 서로 대화하는 모습 2016.08.18 353
309 [TLS]TLS용 사설 인증서 변경 혹은 신규 지정시 No trusted certificate found 오류 발생시 확인및 조치사항 2022.03.15 352
308 [Dovecot] -ERR [SYS/PERM] Permission denied 2017.06.13 352
307 How-to: Build a Complex Event Processing App on Apache Spark and Drools file 2016.10.31 352
306 [shellscript] 함수에 배열을 인자로 주어서 처리하는 방법 2019.07.16 350
305 hadoop nfs gateway설정 (Cloudera 6.3.4, CentOS 7.4 환경에서) 2022.01.07 349
304 Hue Load Balancer를 L4로 L/B하는 경우는 L4쪽 도멘인으로 발행된 인증서를 TLS/SSL항목에 설정해주어야 한다. 2021.10.08 348
303 ?a는 모두 표시하면서 ?b와 비교하여 ?a=?b는 표시하고 ?a!=?b 인경우는 ""로 구성된 결과 집합을 구하는 경우 file 2016.01.29 347
302 CentOS6에 python3.5.1 소스코드로 빌드하여 설치하기 2016.05.27 346
위로