메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

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



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

번호 제목 날짜 조회 수
441 Caused by: java.sql.SQLNonTransientConnectionException: Could not read resultset: unexpected end of stream, read 0 bytes from 4 오류시 확인/조치할 내용 2016.10.31 4064
440 mybatis와 spring을 org.apache.commons.dbcp2.BasicDataSource의 DataSource로 연동할때 DB설정(참고) 2016.10.31 1074
439 How-to: Tune Your Apache Spark Jobs (Part 2) file 2016.10.31 221
438 How-to: Build a Complex Event Processing App on Apache Spark and Drools file 2016.10.31 360
437 Flume을 이용한 데이타 수집시 HBase write 성능 튜닝 file 2016.10.31 724
436 Flume과 Kafka를 사용한 초당 100만개 로그 수집 테스트 file 2016.10.31 1126
435 Spark Streaming 코드레벨단에서의 성능개선 2016.10.31 284
434 centos 6에서 mariadb 5.1 to 10.0 으로 upgrade 2016.11.01 201
433 java스레드 덤프 분석하기 file 2016.11.03 185
432 데이타 분석및 머신러닝에 도움이 도움이 되는 사이트 2016.11.04 448
431 [SparkR]SparkR 설치 사용기 1 - Installation Guide On Yarn Cluster & Mesos Cluster & Stand Alone Cluster file 2016.11.04 339
430 Eclipse실행시 Java was started but returned exit code=1이라는 오류가 발생할때 조치방법 2016.11.07 578
429 Kafka Offset Monitor로 kafka 상태 모니터링 하기 file 2016.11.08 663
428 참고할만한 spark예제를 설명하는 사이트 2016.11.11 185
427 spark notebook 0.7.0설치및 설정 2016.11.14 464
» git 초기화(Windows에서 Git Bash사용) 2016.11.17 246
425 특정 단계의 commit상태로 만들기(이렇게 하면 중간에 반영된 모든 commit를 history가 삭제된다) 2016.11.17 357
424 Github를 이용하는 전체 흐름 이해하기 2016.11.18 145
423 특정 커밋 시점(commit id를 기준으로)으로 돌리기(reset) 2016.11.21 188
422 .gitignore파일에 지정되지 않은 파일이 ignore되는 경우 확인방법 2016.11.22 450
위로