Etc/Git
[Git] Github Repository 커밋 로그까지 포함 다른 Repository로 이동하기
이진2
2021. 8. 2. 22:58
1. Git Bash를 열고 [기존의 레퍼지토리]를 bare clone 해준다
git clone --bare https://github.com/exampleuser/old-repository.git
2. [새로운 레포지토리]로 mirror push 해준다
cd old-repository
git push --mirror https://github.com/exampleuser/new-repository.git
3. (선택) 이전에 존재했던 [기존의 레포지토리]를 삭제한다
cd .. $ rm -rf old-repository