개발 공부
(github) commit 내역 포함해서 clone 하기 본문
1. Source repository clone
$ git clone --mirror [source repo _ https://github.com/계정/repo이름.git]
# 또는
# $ git clone --bare [source repo _ https://github.com/계정/repo이름.git]
2. git push to target repository
$ cd [source repo이름]
$ git push --mirror [target repo _ https://github.com/계정/repo이름.git]
3. 1번에서 clone한 임시 저장소 삭제 (option)
$ cd ..
$ rm -rf [source repo이름]
참고 :
https://hanul-dev.netlify.app/git/git-repository-%EC%9D%B4%EB%8F%99%ED%95%98%EA%B8%B0/
'IT 상식' 카테고리의 다른 글
(github) remote 작업 요청 시 remote: Repository not found. 오류 (0) | 2021.07.12 |
---|---|
(github) master 에서 main 으로 브랜치 이름 바꾸기 (0) | 2021.07.12 |
(용어) APIM 이란? (0) | 2021.07.09 |
(보안, 네트워크) ACL 규칙 (0) | 2021.06.24 |
(social media) 페북의 뉴스피드 역사 (0) | 2021.01.29 |
Comments