[ git ] repository 저장소 옮기기 (+ 커밋까지)

gimmari·2024년 9월 8일
0

📝 React

목록 보기
19/24

1. 옮길 레파지토리 준비

 $ sudo git clone --mirror {Repository.git}

Repository.git에는 git clone 주소를 넣어준다

2. git 이름 바꿔주기

git clone을 하고 나면 xxx.git 이라는 디렉토리가 나타나는데 이름을 .git으로 바꿔준다

 $ mv Repository.git .git

3. 새 레파지토리 연결

새 레파지토리의 git 주소를 연결한다

 $ git remote set-url origin {NewRepository.git}
  1. push 해주면 끝!
 $ git push --mirror
profile
김마리의 개발.로그

0개의 댓글