메뉴 건너뛰기

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

번호 제목 날짜 조회 수
361 2개 data를 join하고 마지막으로 code정보를 join하여 결과를 얻는 mr 프로그램 2014.06.30 467
360 impala테이블 쿼리시 max_row_size 관련 오류가 발생할때 조치사항 2020.02.12 465
» .gitignore파일에 지정되지 않은 파일이 ignore되는 경우 확인방법 2016.11.22 465
358 spark notebook 0.7.0설치및 설정 2016.11.14 464
357 Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.http.HttpConfig.getSchemePrefix()Ljava/lang/String; 해결->실패 2015.06.14 462
356 producer / consumer구현시 설정 옵션 설명 2016.10.19 461
355 Hbase API를 이용하여 scan시 페이징을 고려하여 목록을 가져올때 사용할 수 있는 로직의 예시를 보여줌 2017.04.26 460
354 mybais #과 $의 차이점 2015.11.10 460
353 linux에서 특정 포트를 사용하는 프로세스 확인하기 2017.04.26 457
352 특정문자열이나 URI를 임의로 select 절에 지정하여 사용할때 사용하는 sparql 문장 2016.08.25 457
351 Ubuntu 16.04 LTS에서 사이트에 무료인증서를 이용하여 SSL적용 file 2017.05.23 456
350 tablet별 disk사용량 확인하는 방법 2021.08.27 455
349 데이타 분석및 머신러닝에 도움이 도움이 되는 사이트 2016.11.04 455
348 cassandra cluster 문제가 있는 node제거 하기(DN상태의 노드가 있으면 cassandra cluster 전체에 문제가 발생하므로 반드시 제거할것) 2017.06.21 454
347 Hadoop 완벽 가이드 정리된 링크 2016.04.19 454
346 Mountable HDFS on CentOS 6.x(hadoop 2.7.2의 nfs기능을 이용) 2016.11.24 453
345 AIX 7.1에 Hadoop설치(정리중) 2016.09.12 453
344 lagom을 이용한 샘플 경매 프로그램 실행방법 2017.06.20 450
343 kudu hms check 사용법(예시) 2021.10.22 448
342 kerberos설정된 상태의 spooldir->memory->hdfs로 저장하는 과정의 flume agent configuration구성 예시 2019.05.30 448
위로