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
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
15 | 여러가지 방법으로 특정 jar파일을 exclude하지 못하는 경우 해당 jar파일을 제외시키는 방법 | 2016.08.11 | 2331 |
14 | jar파일의 dependency찾는 프로그램 | 2016.08.11 | 2526 |
13 | compile할때와 exclude할때 대상을 표현하는 명칭이 다르므로 주의할것 | 2016.08.10 | 3450 |
12 | 외부 jar파일을 만들려고하는jar파일의 package로 포함하는 방법 | 2016.08.10 | 2105 |
11 | 로컬의 라이브러리파일들을 dependency에 포함시키는 방법 | 2016.08.09 | 3251 |
10 | gradle을 이용하여 jar파일 생성시 provided속성을 지정할 수 있게 설정하는 방법 | 2016.08.09 | 3198 |
9 | [SBT] assembly시 "[error] deduplicate: different file contents found in the following:"오류 발생시 조치사항 | 2016.08.04 | 4446 |
8 | [SBT] SBT 사용법 정리(링크) | 2016.08.04 | 3259 |
7 | [SBT] project.sbt에 libraryDependencies에 필요한 jar를 지정했으나 sbt compile할때 클래스를 못찾는 오류가 발생했을때 조치사항 | 2016.08.03 | 3806 |
6 | build할때 unmappable character for encoding MS949 에러 발생시 조치사항 | 2016.08.03 | 3674 |
5 | [sbt] sbt-assembly를 이용하여 실행에 필요한 모든 j라이브러리를 포함한 fat jar파일 만들기 | 2016.07.11 | 4556 |
4 | [sbt] sbt 0.13.11 를 windows에 설치하고 scala프로그램을 compile해서 jar파일 만들기 | 2016.07.11 | 3943 |
3 | centos에 sbt 0.13.5 설치 | 2016.05.30 | 3200 |
2 | git설명 한글판 | 2015.12.09 | 2827 |
1 | pom.xml에서 build.gradle로 변환 | 2015.09.14 | 3258 |