메뉴 건너뛰기

Bigdata, Semantic IoT, Hadoop, NoSQL

Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다. 문의사항은 gooper@gooper.com로 메일을 보내주세요.


1. 해당 폴더로 이동(이전에 다른 리포지토리에서 clone한곳)

  cd /home/gooper/git/gdime


2. 기존 리포지토리 pull/psh

  git pull

  git add .

  git commit -m "clean push"

 git push


3. 기존 리포지토리 제거

  git remote remove origin


4. 새 리포지토리 remote추가

  git remote add origin https://gooperone@bitbucket.org/gooperone/gdime.git


5. 로컬 소스를 리포지토리에 반영

  git push -u origin master


6. dev라는 브랜치를 만들고(리포지토리 제공 페이지에서 진행) 앞으로의 작업이 진행될수 있도록도록함

  git fetch && git checkout dev


---------로컬에 이전 리포지토리를 이용하여 새로운 이름의 리포지토리를 생성하고 원격 리포지토리에 등록하기

1. 리포지토리 상위 폴더로 이동

  cd /home/gooper/git

2. 이전에 존재하는 리포지토리를 이용하여 새로운 리포지토리 생성

  mv old_repository_name new_repository_name

3. 새로 생성된 리포지토리로 폴더 변경

  cd new_repository_name

4. 기존의 히스토리 삭제

  rm -rf .git

5. 파일 정리후 새로운 git설정

  git init

  git add .

  git commit -m "first commit"

6. 저장소 생성

  리포지토리 제공업체의 페이지에서 절차에 따라 생성해준다.

7. 6에서 생성한 git 저장소 연결

  git remote add origin https://gooper@bitbucket.org/gooper/gdime.git

8. 강제 push 

  git push -u --force origin master

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.

위로