본격적인 개발 노트를 작성하기에 앞서 내 깃헙 리포지토리들을 정리하려고 한다.
WEB 이라는 리포지토리를 새로 만들고,
기존에 있는 두 리포지토리들, WEB_as1과 WEB_as2를 WEB의 하위로 옮기기!
전>
WEB_as1
WEB_as2
후>
WEB
WEB_as1
WEB_as2
깃헙에서 WEB이라는 이름의 리포지토리를 만든다.
이 WEB 리포지토리를 clone 한다.
git clone (리포지토리주소)
(+ 로컬에서 그냥 아무 위치에서 던지 편한곳에서 명령창 열구 저 명령어 치면 ok !)
cd (파일이름)
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.
git subtree add --prefix=(해당 Repository 하위의 디렉터리 구조) (옮겨올 Repository 주소) (옮겨올 Repository의 branch)
(+ 예시)
git subtree add --prefix=WEB_as1 https://github.com/ykim232/WEB_as1.git main