메뉴 건너뛰기

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

번호 제목 날짜 조회 수
190 Nodes of the cluster (unhealthy)중 1/1 log-dirs are bad: 오류 해결방법 2015.05.17 4497
189 Jena 2.3를 Hadoop 2.7.2의 NFS로 mount하고 fuseki를 이용하여 start할때 오류 메세지 2016.12.02 4497
188 How to Install Magento 2.4.7 on Ubuntu 24.04 2024.09.04 4502
187 impala 설치/설정 2016.06.03 4505
186 [Kudu] tablet server 혹은 kudu master가 어떤 원인에 의해서 replica가 failed상태인 경우 복구하는 방법 2021.05.24 4508
185 avro 사용하기(avsc 스키마 파일 컴파일 방법, consumer, producer샘플소스) 2016.07.08 4510
184 [Kerberos]병렬 kinit 호출시 cache파일이 손상되어 Bad format in credentials cache 혹은 No credentials cache found 혹은 Internal credentials cache error 오류 발생시 2023.01.20 4515
183 원격 리포지토리에서 최초 clone시 Permission denied (publickey). 오류발생시 조치사항 2017.06.20 4516
182 [Atlas Server]org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions (user=atlas/node01.gooper.com@GOOPER.COM, scope=default:atlas_janus, params=[table=default:atlas_janus,], action-CREATE)] 2023.05.15 4516
181 resouce manager에 dr.who가 아닌 다른 사용자로 로그인 하기 2018.06.28 4517
180 [sqoop] mapper를 2이상으로 설정하기 위한 split-by컬럼을 찾을때 유용하게 활용할 수 있는 쿼리 2020.05.13 4517
179 [CDP7.1.7][Replication]Table does not match version in getMetastore(). Table view original text mismatch 2024.01.02 4518
178 [Active Directory] AD Kerberos보안 설정 변경 방법 (Maximum lifetime for user ticket, Maximum lifetime for user ticket renewal) 2024.03.12 4520
177 sequence한 번호 생성방법 2014.04.25 4523
176 [Hadoop Encryption] Encryption Zone에 생성된 table에 Hue에서 insert 수행시 User:hdfs not allowed to do 'DECRYPT_EEK' ON 'testkey' 오류 2023.11.01 4523
175 [CDP7.1.7]Hive Replication수행중 Specified catalog.database.table does not exist : hive.db명.table명 오류 발생시 조치방법 2024.04.05 4524
174 hadoop 2.6.0에 sqoop2 (1.99.5) server및 client설치 == fail 2015.06.11 4525
173 Oracle NLOB type의 데이터를 import하는 경우 No Java type for SQL type 2011 for column rst와 같은 오류 발생시 조치사항 2022.01.14 4525
172 ../depcomp: line 512 exec : g++ : not found 2013.03.08 4526
171 [Hue]Hue의 메타정보를 담고 있는 desktop_document테이블과 desktop_document2의 관계 2022.05.09 4528
위로