메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

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


git git 초기화(Windows에서 Git Bash사용)

총관리자 2016.11.17 14:41 조회 수 : 3607


1. 현재 sdaf프로젝트는 3개의 하위프로젝트를 가지고 있는 경우임


2. 작업할 폴더(예, sdaf)로 이동한다.

  cd ./sdaf


3. 기존의 모든 히스토리 삭제

rm -rf .git


4. 현재 소스들로 git repository 다시 생성하기

git init

git add .

git commit -m "Initial commit"


5. 올리지 말아야 할 파일(설정정보, 비밀번호등 노출되면 안되는 정보파일)을 최상위폴더(.git디렉토리가 있는)에 .gitignore 파일에 생성하고 commit한다.

  가. echo "SdaConstant.java" >> .gitignore

  나. echo "context-datasource.xml" >> .gitignore

  다. git add .gitignore

  라. git commit -m "Add SdaConstant,context-datasource to .gitignore"


* .gitignore파일에 등록할 내용 예시


SdaConstant.java

context-datasource.xml  

db.properties

build/

bin/

target/

build.gradle

dependency-reduced-pom.xml

.settings/

*.swp

.classpath

.project

.springBeans 


6. GitHub에 push하기

git remote add origin https://github.com/iotoasis/SDA.git

git push -u --force origin master


* git push하면 원격저장소의 모든 내용이 로컬에서 등록한 내용으로 바뀌게 된다.



*참고: 하위의 *.svn을 모두 삭제해줌

find . -name .svn -print0 | xargs -0 rm -rf

번호 제목 날짜 조회 수
330 DB별 JDBC 드라이버 2015.10.02 4177
329 hadoop의 data디렉토리를 변경하는 방법 2014.08.24 4179
328 not leader of this config: current role FOLLOWER 오류 발생시 확인방법 2022.01.17 4182
327 kerberos설정된 상태의 spooldir->memory->hdfs로 저장하는 과정의 flume agent configuration구성 예시 2019.05.30 4189
326 [Sentry] sentry메타 DB를 이용하여 테이블에 매핑되어 있는 role명칭 찾는 방법. 2022.06.22 4191
325 AIX 7.1에서 hive실행시 "hive: line 86: readlink: command not found" 오류가 발생시 임시 조치사항 2016.09.25 4195
324 [TLS/SSL]Cloudera 6.3.4기준 Oozie Web UI TLS설정 항목및 설정값 2022.05.13 4195
323 Failed to write to server: (no server available): 2022.01.17 4196
322 "File /user/hadoop/share/lib does not exist" 오류 해결방법 2015.06.07 4197
321 [sentry]role부여후 테이블명이 변경되어 오류가 발생할때 조치방법 2018.10.16 4199
320 cloudera서비스 중지및 기동순서 2020.02.14 4204
319 [TLS/SSL]Kudu Tablet Server설정 2022.05.13 4208
318 Windows7 64bit 환경에서 Apache Hadoop 2.7.1설치하기 2017.07.26 4209
317 Kafka의 API중 Consumer.createJavaConsumerConnector()를 이용하고 다수의 thread를 생성하여 Kafka broker의 topic에 접근하여 데이타를 가져오고 처리하는 예제 소스 2017.04.26 4211
316 Apache Spark와 Drools를 이용한 CEP구현 테스트 2016.07.15 4212
315 json 값 다루기 2014.04.17 4217
314 하둡 클러스터 전체 노드를 다시 기동하면 invalidate metadata를 수행해야 데이터가 틀어지지 않는다. 2019.05.20 4221
313 sentry설정 방법및 활성화시 설정이 필요한 파일및 설정값, 계정생성 방법 2018.08.16 4228
312 AnalysisException: Incomplatible return type 'DECIMAL(38,0)' and 'DECIMAL(38,5)' of exprs가 발생시 조치 2021.07.26 4229
311 java.util.NoSuchElementException발생시 조치 2014.08.27 4231
위로