2013-05-06 2 views
3

총 Noob이므로 SmartGit을 전혀 사용할 수 없습니다. 힘내 기 용어가 너무 혼란 스럽습니다. 여기 "모든 참조가 푸시되지 않았습니다."SmartGIt의 오류

내가 무슨 짓을, 나는

  1. 초기화 된 Repo1 GIT로
  2. 복제 된 Repo1는
  3. 추가 된 텍스트 파일을 Repo2하는 SmartGit에서이 저장소, Repo1 및 Repo2 을 생성 Repo1에 텍스트를 추가했습니다.
  4. 는 "모든 심판이 밀려왔다 없음"
  5. 은 내가 을 얻고있다 Repo1 이러한 변경을 밀어하려고 지금
  6. 최선을 다하고 텍스트 파일
  7. 에 몇 가지 변경을 Repo2
  8. 에 대한 빼서 오류 "

업데이트 :

Push: Not all refs have been pushed. 
    'master' rejected (non-fast-forward) 
    Counting objects: 10, done. 
    Delta compression using up to 2 threads. 
    Compressing objects: 20% (1/5) 
    Compressing objects: 40% (2/5) 
    Compressing objects: 60% (3/5) 
    Compressing objects: 80% (4/5) 
    Compressing objects: 100% (5/5) 
    Compressing objects: 100% (5/5), done. 
    Writing objects: 12% (1/8) 
    Writing objects: 25% (2/8) 
    Writing objects: 37% (3/8) 
    Writing objects: 50% (4/8) 
    Writing objects: 62% (5/8) 
    Writing objects: 75% (6/8) 
    Writing objects: 87% (7/8) 
    Writing objects: 100% (8/8) 
    Writing objects: 100% (8/8), 726 bytes, done. 
    Total 8 (delta 0), reused 0 (delta 0) 
    remote: error: refusing to update checked out branch: refs/heads/master 
    remote: error: By default, updating the current branch in a non-bare repository 
    remote: error: is denied, because it will make the index and work tree inconsistent 
    remote: error: with what you pushed, and will require 'git reset --hard' to match 
    remote: error: the work tree to HEAD. 
    remote: error: 
    remote: error: You can set 'receive.denyCurrentBranch' configuration variable to 
    remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into 
    remote: error: its current branch; however, this is not recommended unless you 
    remote: error: arranged to update its work tree to match what you pushed in some 
    remote: error: other way. 
    remote: error: 
    remote: error: To squelch this message and still keep the default behaviour, set 
    remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'. 
    error: failed to push some refs to '/home/sdr1/Desktop/LocalRepository' 
+0

출력 창에 몇 가지 추가 오류 정보가 있어야합니다. – mstrap

+0

[이 질문에] (http://stackoverflow.com/questions/15794578/smartgit-error-push-error-not-all-refs-have-been-pushed) 의견이 있습니다. – 1615903

+0

@mstrap 오류 로그를 추가했습니다. –

답변

3

읽어 보시기 바랍니다 오류 메시지의 부분 :이 작업 트리, 인덱스와 HEAD가 일관성이 없거나 매우 오류가 발생하기 쉬운 만들 것 때문에

remote: error: By default, updating the current branch in a non-bare repository 
remote: error: is denied, because it will make the index and work tree inconsistent 
remote: error: with what you pushed, and will require 'git reset --hard' to match 
remote: error: the work tree to HEAD. 

힘내, 비 베어 저장소 (여기 Repo1)의 지점으로 밀어 방지 할 수 있습니다.

해결 방법 : 원래 저장소 (Repo1)를 다른 분기로 전환하고 복제본 (Repo2)에서 다시 밀어 넣으십시오.