Github / Gitlab History 까지 모두 복사하기

설탕찍은사과·2023년 7월 31일
0

Github/Gitlab

목록 보기
1/2

1. mirror 옵션을 이용한 clone

git clone --mirror  gitrepositoryurl
// 특정 브랜치만 해당된다면??
git clone -b BrancheName --single-branch --mirror gitrepositoryUrl

2. repository명.git 을 .git으로 이름 변경


mv repository명.git .git 

3. 새로운 repository와 연결

git remote set-url origin New-RepositoryUrl

4. 새 repository에 push

git push --mirror
profile
귀찮아하지말고 계속 정리하고 공부하자

0개의 댓글