1
나는 여러 가지가있다 : master
, develop
, feature1
, feature2
.힘내 너무 많은 지점에 푸시
feature1
및 feature2
에 몇 가지 항목을 개발했습니다 (푸시). 그럼, master
로 전환 할 일부 내용을 변경하고 밀어 :
% git push
To [email protected]:ossmgt/myrepo.git
! [rejected] feature1 -> feature1 (non-fast-forward)
! [rejected] feature2 -> feature2 (non-fast-forward)
error: failed to push some refs to '[email protected]:ossmgt/myrepo.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. If you did not intend to push that branch, you may want to
hint: specify branches to push or set the 'push.default' configuration
hint: variable to 'current' or 'upstream' to push only the current branch.
나는 master
가 밀렸다로 변경 우리 지역 ACME Github의 인스턴스에 확인했습니다. 하지만 일단 feature1
과 feature2
으로 푸시하면 내가 다른 지점으로 전환하더라도 해당 지점을 계속 푸시하고 싶다는 생각이들 것 같습니다. master
. 구성 :
% git remote show origin
* remote origin
Fetch URL: [email protected]:ossmgt/myrepo.git
Push URL: [email protected]:ossmgt/myrepo.git
HEAD branch: master
Remote branches:
develop tracked
master tracked
feature1 tracked
feature2 tracked
Local branches configured for 'git pull':
master merges with remote master
feature1 merges with remote feature1
feature2 merges with remote feature2
Local refs configured for 'git push':
develop pushes to develop (up to date)
master pushes to master (up to date)
feature1 pushes to feature1 (local out of date)
feature2 pushes to feature2 (local out of date)
무해한 것 같지만 성가시다. git이 CURRENT (체크 아웃) 분기로만 푸시하도록 구성하려면 어떻게해야합니까?
Git의 이전 버전 인 <1.9를 사용하고 있습니까? Git은 최근에이 특정 동작을 변경 했으므로 기본값에 대한 변경 사항을 검토 할 수 있습니다. –