upstream 주소추가 , upstream에서 업데이트본 받기

김하은·2022년 12월 27일
0

git remote add upstream 깃허브upstream주소
git pull upstream develop
git merge upstream/develop

git reset --hard upstream/develop
=> 강제로 다 지우고
git checkout develop
git merge upstream/develop
메인도 같은 작업해야하고
마지막에
git pull

git branch
git checkout main
git remote -v
git remote add upstream upstream레파지토리주소
git remote -v
git fetch upstream
git merge upstream/main
git push origin main
git branch
git checkout develop
git pull upstream develop
git merge upstream/develop
git pull
git checkout main
git pull upstream main
git checkout develop
git add .
git commit -m '[2022-12-27-(#git pull)'
git push

0개의 댓글

관련 채용 정보