Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
----.git폴더를 삭제하고 다시 git에 추가하고 서버(bitbucket.org)의 gooperone계정에 반영하는 방법
1. 현재 상태 확인
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (dev)
$ git status
fatal: Not a git repository (or any of the parent directories): .git
2. .git폴더가 없으므로 새로 생성하여 초기화 해줌
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf
$ git init
Initialized empty Git repository in C:/dev/workspace/gsdaf/.git/
3. 원격저장소를 로컬과 연결함
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git remote add origin https://gooperone@bitbucket.org/gooperone/gsda.git
4. master에 push하려 하지만 오류발생함
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to 'https://gooperone@bitbucket.org/gooperone/gsda.git'
5. 파일목록 확인
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ ls
build.gradle gsda-client/ gsda-common/ gsda-doc/ gsda-web/ LICENSE pom.xml README.md src/
6. 현재 상태 확인
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git status
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
LICENSE
README.md
gsda-client/
gsda-common/
gsda-doc/
gsda-web/
pom.xml
src/
nothing added to commit but untracked files present (use "git add" to track)
7. 현재 폴더 내용을 git에 등록함
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git add *
The following paths are ignored by one of your .gitignore files:
build.gradle
Use -f if you really want to add them.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/comm/conf/ExceptionHelper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/comm/kafka/avro/COL_ONEM2M.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/comm/kafka/avro/COL_RDBMS.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/context/routine/ICBMSContext.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/context/routine/ICBMSDeviceContext.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/context/routine/ICBMSLocationContext.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/context/routine/ICBMSPersonalContext.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/dto/OneM2MContainerType.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/dto/SurveyInfoDTO.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/dto/UserInOutInfoDTO.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/onem2m/OneM2MSubscribeUriMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/service/AttendanceServiceMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/service/PresenceServiceMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/service/SurveyServiceMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/mapper/service/UserInOutServiceMapper.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/model/ICBMSContextConditionModel.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/java/com/gooper/icbms/sda/kb/query/DeviceResource.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-common/src/main/resources/log4j.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-doc/build_eclipse.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-doc/configuration.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-doc/quick-start.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-web/src/main/webapp/WEB-INF/config/action-servlet.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in gsda-web/src/main/webapp/WEB-INF/config/log4j.xml.
The file will have its original line endings in your working directory.
8. 다시 상태 확인
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: LICENSE
new file: README.md
new file: gsda-client/pom.xml
new file: gsda-client/src/main/java/com/gooper/icbms/sda/hbase/onem2m/AvroOneM2MDataToHBaseSubscribe.java
.......
new file: gsda-client/src/test/java/com/gooper/icbms/sda/sda_client/AppTest.java
new file: gsda-common/pom.xml
new file: gsda-common/src/main/java/com/gooper/icbms/sda/comm/SchComm.java
.....
new file: gsda-doc/build_eclipse.md
new file: gsda-web/pom.xml
new file: gsda-web/src/main/java/com/gooper/icbms/sda/itf/ci/controller/CiController.java
......
new file: src/main/webapp/WEB-INF/jsp/sample/boardList.jsp
new file: src/main/webapp/WEB-INF/web.xml
new file: src/main/webapp/index.jsp
9. 첫번재 커밋수행
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git commit -m "First Commit."
[master (root-commit) 8f1a2c9] First Commit.
346 files changed, 38605 insertions(+)
create mode 100644 LICENSE
create mode 100644 README.md
create mode 100644 gsda-client/pom.xml
create mode 100644 gsda-client/src/main/java/com/gooper/icbms/sda/hbase/onem2m/AvroOneM2MDataToHBaseSubscribe.java
....
create mode 100644 gsda-client/src/test/java/com/gooper/icbms/sda/sda_client/AppTest.java
create mode 100644 gsda-common/pom.xml
create mode 100644 gsda-common/src/main/java/com/gooper/icbms/sda/comm/SchComm.java
......
create mode 100644 gsda-common/src/main/resources/mybatis-config.xml
create mode 100644 gsda-doc/build_eclipse.md
create mode 100644 gsda-web/src/main/java/com/gooper/icbms/sda/itf/ci/controller/CiController.java
.....
create mode 100644 pom.xml
create mode 100644 src/main/java/com/gooper/icbms/sda/comm/common/THJobTest1.java
....
create mode 100644 src/main/webapp/index.jsp
10. master 브랜치에 push수행
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$ git push -u origin master
Counting objects: 466, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (403/403), done.
Writing objects: 100% (466/466), 302.18 KiB | 0 bytes/s, done.
Total 466 (delta 157), reused 0 (delta 0)
To https://bitbucket.org/gooperone/gsda.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
gooper@gooper-PC MINGW64 /c/dev/workspace/gsdaf (master)
$
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
730 | jupyter, zeppelin, rstudio를 이용하여 spark cluster에 job를 실행시키기 위한 정보 | 2018.04.13 | 7702 |
729 | 하둡 분산 파일 시스템을 기반으로 색인하고 검색하기 | 2013.03.15 | 7636 |
728 | [gson]mongodb의 api를 이용하여 데이타를 가져올때 "com.google.gson.stream.MalformedJsonException: Unterminated object at line..." 오류발생시 조치사항 | 2017.12.11 | 7581 |
727 | LUBM 데이타 생성구문 | 2017.07.24 | 7513 |
726 | oracle to hive data type정리표 | 2018.08.22 | 7377 |
725 | spark-sql실행시 Caused by: java.lang.NumberFormatException: For input string: "0s" 오류발생시 조치사항 | 2016.06.09 | 7108 |
724 | [Kerberos]Kerberos상태의 클러스터에 JDBC로 접근할때 케이스별 오류내용 | 2020.02.14 | 7062 |
723 | Caused by: java.sql.SQLNonTransientConnectionException: Could not read resultset: unexpected end of stream, read 0 bytes from 4 오류시 확인/조치할 내용 | 2016.10.31 | 6938 |
722 | sqoop작업시 hdfs의 개수보다 더많은 값이 중복되어 oracle에 입력되는 경우가 있음 | 2014.09.02 | 6935 |
721 | import 혹은 export할때 hive파일의 default 구분자는 --input-fields-terminated-by " |