메뉴 건너뛰기

Bigdata, Semantic IoT, Hadoop, NoSQL

Bigdata, 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

A personal place to organize information learned during the development of such Hadoop, Hive, Hbase, Semantic IoT, etc.
We are open to the required minutes. Please send inquiries to gooper@gooper.com.

위로