[Github] commit log 포함해서 레포지토리 옮기기

O_K·2022년 3월 4일
1

git

목록 보기
1/1
post-thumbnail

요약
1. 기존의 원격 저장소(old repo) 연결을 끊기
2. 옮기고 싶은 레포지토리(new repo)와 연결


  1. 옮기고 싶은 repo clone (old repo)
$ git clone <기존 repo 위치>
  1. 연결된 remote 위치 확인
$ git remote -v
  1. 원격 저장소(old repo) 연결 끊기
$ git remote remove <old repo name>
  1. 옮기고 싶은 저장소(new repo)와 연결
$ git remote add <name> <new repo 위치>
  1. add - commit - push 로 new repo에 올리기

이렇게 하면 commit 기록날리지 않고 함께 옮길 수 있다.

profile
즐거운 개발자가 목표

0개의 댓글