반응형
git history log 포함해서 강제로 push 하기
All branch 를 포함한 전체 push
- bare 와 mirror 옵션으로 git 을 복제한다.
- 복제된 git 에 새로운 URL 를 추가한다.
- 새로운 URL 에 강제 push 한다. (모든 branch 를 push 하기 위해 --all 옵션 추가)
git clone <URL_GIT> --bare --mirror
git remote add new <URL_TO_PUSH>
git push new —all
특정 branch 만 push
- bare 와 mirror 옵션으로 git 을 복제한다.
- 복제된 git 에 새로운 URL 를 추가한다.
- 새로운 URL 에 강제 push 한다.
git clone <URL_GIT> -b devel
git remote add new <URL_TO_PUSH>
git push new devel
관련자료
https://git-scm.com/docs/git-push
Git - git-push Documentation
In general, URLs contain information about the transport protocol, the address of the remote server, and the path to the repository. Depending on the transport protocol, some of this information may be absent. Git supports ssh, git, http, and https protoco
git-scm.com
반응형
'기타 > Linux' 카테고리의 다른 글
[우분투] Ubuntu 20.04 Gitlab IP 주소 변경하기 (0) | 2021.11.29 |
---|---|
[우분투] Docker 이미지 관리하기 (0) | 2021.11.08 |
[우분투] parted 를 이용한 대용량 파티션 관리 (0) | 2021.10.20 |
[우분투] Ubuntu 20.04 Gitlab CE Push 오류 (0) | 2021.10.16 |
[우분투] Ubuntu 20.04 repo 설치하기 (0) | 2021.10.15 |
[우분투] Ubuntu 20.04 Gitlab CE 설치하기 (0) | 2021.10.15 |
[우분투] Ubuntu 20.04 삼바 Samba 설정하기 (0) | 2021.10.13 |
[우분투] Windows 10 에서 우분투 부팅 USB 만들기 (0) | 2021.10.12 |