Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- npm
- Shooting
- jpa
- log
- Trouble
- Containers
- 스카우터
- node
- TroubleShooting
- nvm
- Scouter
- 어노테이션
- 트러블슈팅
- node버전
- subtree
- k8s
- VUE
- APM
- PODS
- MVVM
- github
- TypeScript
- git
- docker
- 패턴
- Vue-CLI
- credential
- stern
- annotation
Archives
- Today
- Total
JSheep`s Album
[Github] 다수의 Repository 합치기 본문
프로젝트들을 수행하다 보면 MSA 및 작은규모의 프로젝트를 여러개가 생성되어 Repo가 계속 늘어나서 Github에 추가 되게 된다.
본인 Github에 들어가면 목록도 길어지고 찾고 싶은 Repo를 찾기 어려울수도 있다.
프로젝트별이든 기록용이든 각각 Repo를 생성하여 내부에 각각의 프로젝트들을 관리 하기로 했다.
Repository 합치기
- 대표로 사용할 Repository 생성
- 생성한 Repository
$ git clone Repository주소
- 커밋하기
- 새로만든 Repository에 Readme.md등 폴더나 파일 하나를 생성 해 둔다.
- 이 단계를 건너뛰고 다음단계를 실행 할 경우 다음과 같은 오류가 발생하니 당황하지 않고 해당 단계를 수행.
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
git <command> [<revision>...] -- [<file>...]
Working tree has modifications. Cannot add.
- Repository 합치기
$ git subtree add --prefix=디렉토리명 Repository주소 브랜치명
'1st Album - Dev > 09. Git' 카테고리의 다른 글
Git 연동 시 Password 물어보지 않도록 설정하기 (credential.helper) (0) | 2022.03.22 |
---|
Comments