일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Virtual Memory
- Loss
- backtracking
- Github
- ML
- two pointer
- 재귀함수
- OS
- Python
- 백트래킹
- dfs
- 재귀
- 파이썬
- Algorithm
- CS
- 머신러닝
- 알고리즘
- sort
- 정렬
- 완전탐색
- 코테
- python3
- 백준
- 투포인터
- 1일1솔
- 프로그래머스
- 브루트포스
- BF
- 코딩테스트
- 신나는함수실행
Archives
- Today
- Total
이것저것 공부 기록하기
[Github] Repository mirroring 본문
공부용으로 다른 repository를 fork에서 사용하려는데 fork로는 해당 repository를 private하게 볼 수가 없었다.
그저 나는 공부용으로 보고 싶을 뿐인디?!
그래서 setting 들어가면 github에서 친절하게 이걸 private하게 보고 싶으면 fork하지 말고 mirroring하라고 Duplicating a repository 링크로 안내해준다.
Duplicating a repository - GitHub Docs
To duplicate a repository without forking it, you can run a special clone command, then mirror-push to the new repository. Before you can duplicate a repository and push to your new copy, or mirror, of the repository, you must create the new repository on
docs.github.com
정리하자면 터미널 열고 로컬에 클론해서 내 깃헙 url로 미러링해서 옮기는 방식!
git clone --mirror {기존 repository 주소}
cd {기존 repository 명}.git
git remote set-url --push origin {신규 repository 주소}
git push --mirror
추가 작업으로 로컬에 복사된 폴더 삭제까지 진행하면 깔끔하게 끝
cd ..
rm -rf {기존 repository 명}
반응형
'CS > Github' 카테고리의 다른 글
github 로컬 연동 flow 정리 (0) | 2021.09.09 |
---|---|
GitHub Error: Authentication Failed 문제 해결하기 (0) | 2021.09.09 |
! [rejected] master -> master (fetch first) 에러 해결 (0) | 2020.12.08 |
Comments