Git 저장소 옮기기

share · 2024-11-25

← 리스트로

git 저장소 옮기기

1. 이전해야 할 원본 저장소를 --bare 옵션으로 복제

git clone --bare <test-module git URL>

2. 해당 디렉토리로 이동

cd test-module.git

3. fetch 해준다

git fetch

4. 새로운 저장소에 push 한다

git push --mirror <새로운 저장소 URL>