메뉴 건너뛰기

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

번호 제목 날짜 조회 수
430 centos 5.X에 hadoop 2.0.5 alpha 설치 2013.12.16 4171
429 impala2를 Cloudera Manager가 아닌 수동으로 설치하는 방법 2018.05.30 4162
428 hive metastore db중 TBLS, TABLE_PARAMS테이블 설명 2021.10.22 4160
427 java.lang.OutOfMemoryError: unable to create new native thread오류 발생지 조치사항 2016.10.17 4160
426 ubuntu에 maven 3.6.1설치 및 환경변수 설정 2019.06.02 4156
425 Ubuntu 16.04 LTS에 4대에 Hadoop 2.8.0설치 2017.05.01 4155
424 It is indirectly referenced from required .class files 오류 발생시 조치방법 2017.03.09 4155
423 AIX 7.1에 Python 2.7.11설치하기 2016.10.06 4155
422 kerberos설정된 상태의 spooldir->memory->hdfs로 저장하는 과정의 flume agent configuration구성 예시 2019.05.30 4147
421 spark 2.3.0을 설치하가 위해서 parcel에 다음 url을 입력한다. 2018.07.15 4146
420 자주쓰는 유용한 프로그램 2018.03.16 4146
419 "File /user/hadoop/share/lib does not exist" 오류 해결방법 2015.06.07 4146
418 oozie 4.1 설치 - maven을 이용한 source compile on hadoop 2.5.2 with postgresql 9.3 2015.04.30 4144
417 DB별 JDBC 드라이버 2015.10.02 4138
416 cloudera에서 spark-shell를 실행했을때 default master는 spark.master=yarn-client임 2018.06.20 4137
415 Failed to write to server: (no server available): 2022.01.17 4135
414 [Sentry]HDFS의 ACL을 Sentry와 연동후 테스트 2020.06.02 4130
413 source, sink를 직접 구현하여 사용하는 예시 2019.05.30 4128
412 [kudu]테이블 drop이 안되고 timeout이 걸리는 경우 조치 방법 2020.06.08 4123
411 HUE를 사용할 사용자를 추가 하는 절차 2018.05.29 4112
위로