Git에서 같은 코드를 다른 저장소로 제출
git pull origin master
git pull origin develop
git push origin master
git push origin develop
git remote add github http://xxxxxxxx.git ( clone )
git remote add gitlab http://xxxxxxxx.git;
git push github master:master;
git push gitlab master:cafe-pages;
현재 지점 아래의 코드를push에서 원격 지점 아래로 직접 이동할 수도 있습니다
git push gitlab develop
커밋 시 다음과 같은 오류가 발생할 수 있습니다.
$ git push -u coding develop
fatal: unable to access 'https://git.coding.net/liukang325/new_pro.git/': The requested URL returned error: 403
왜냐하면 두 창고의 사용자 이름이 일치하지 않을 수도 있기 때문이다.
해결 방법: 엽니다.git/config는
[remote "coding"]
url = https://github.com/iopqrst/liukang325/new_pro.git
다음으로 수정:
[remote "coding"]
url = https://liukang325@github.com/liukang325/new_pro.git
앞에서 나의git 제출에 필요한 사용자 이름liukang325를 추가합니다 @
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
브랜치 병합(Visual studio 2017 사용)의 계속입니다. 기능 추가를 위한 브랜치를 작성하고, 기능 추가한 후, 그 내용을 develop 브랜치에 병합해 봅니다. 1. 새롭게 「add1」라고 하는 브랜치를 작성 2. 브랜치 "add1"을 선택한 상태에서 M...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.