깃헙 레포 합치기
-
[Github] repository 합치기공부 2021. 12. 28. 16:43
1. 깃허브에 기존 레포지토리를 합칠 새로운 레포지토리를 만든다. 2. 1번의 레포지토리를 git clone 해준다. 3. cd 레포지토리명 을 입력하고 해당 폴더(1의 폴더)로 이동한다. 4. subtree를 이용하여 합친다. git subtree add --prefix=(해당 Repository 하위의 디렉터리 명) (옮겨올 Repository 주소) (옮겨올 Repository의 branch) 예시) git subtree add --prefix=vue-practice https://github.com/djWjrh/어쩌고저쩌고.git main 여기에서 아래의 오류가 발생한다면 fatal: ambiguous argument 'HEAD': unknown revision or path not in the ..