2012-11-28 5 views
2

최근에 우리는 Git에서 우리 자신의 브랜치 시스템을 채택했습니다. 그러나 우리가 최근에 좌절 한 것은 한 브랜치 인 Git에서 리모트로 변경하려고 할 때입니다 다른 지점이 원격 카운터 파트 뒤에 있기 때문에 커밋을 중지합니다. 그러므로 우리는 변경된 각 브랜치에 대해 체크 아웃해야하고 원래의 브랜치로 돌아가 커밋을하기 전에 먼저 풀을 수행해야합니다.Git : 다른 브랜치 뒤에있는 커밋이 중지되었습니다.

다른 브랜치로 인해 힘내 기가 커밋을 막을 수있는 설정이 있습니까? 지점을 전환해야하는 필요성을 방지 할 수있는 특정 접근 방식이 있습니까?

답변

0

시도 : 그것은 mentioned here

error: failed to push some refs to '[email protected]:jkubicek/my_proj.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 
+0

참조 오류 메시지의 종류를 피해야한다

git config --global push.default current 

도 http://stackoverflow.com/a/12342080/6309 – VonC

+0

설정의 종류 즉 , http://lists-archives.com/git/767304-push-default-current-vs-upstream.html에서 논의되었으며 Git1.7.11 +과 함께 새로운 푸시 정책으로 연결됩니다. http://stackoverflow.com/questions/4586687/what-of-the-git-push-origin/9749477 # 9749477 – VonC