* 내 github 계정에 read me없이 repository 생성하기
* 컴퓨터에 빈 폴더 생성
우클릭해서 Open Git Bash here
git clone --mirror https://github.com/아이디/가져올repository이름.git
완료되면
cd 가져올repository이름.git
git push --mirror https://github.com/아이디/생성한repository이름.git
만약에 아래와 같은 에러 뜨면
! [remote rejected] refs/pull/1/head -> refs/pull/1/head (deny updating a hidden ref)
* 컴퓨터에 빈 폴더 생성
우클릭해서 Open Git Bash here
git clone --bare https://github.com/아이디/가져올repository이름.git
완료되면
cd 가져올repository이름.git
git push --mirror https://github.com/아이디/생성한repository이름.git
'데브옵스(DevOps) > Git & Github' 카테고리의 다른 글
Git push 하기 (0) | 2023.08.27 |
---|---|
Git 설치 (0) | 2023.08.27 |