2014-09-11 1 views
0

오류가 표시되고 서버에 반영되며 그 반대의 경우도 마찬가지입니다. 하지만 내가 그것을 누르면 오류가 표시됩니다.Git 저장소가 있습니다. 저장소를 복제했습니다. 로컬 변경 사항을 커밋했습니다. 서버에 변경 사항을 적용하면 복제본에서 chages를 가져올 때

오류 메시지 :

git.exe push --progress "origin" master:master 

Counting objects: 11, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (6/6), done. 
Writing objects: 100% (6/6), 474 bytes | 0 bytes/s, done. 
Total 6 (delta 3), 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'. 
To //INCHNLRDFS06/CUB Ebanking$/GIT_Ebank 
! [remote rejected] master -> master (branch is currently checked out) 
error: failed to push some refs to '//INCHNLRDFS06/CUB Ebanking$/GIT_Ebank' 

git did not exit cleanly (exit code 1) (1029 ms @ 9/10/2014 6:43:09 PM) 
+0

어떤 오류가 발생합니까? –

+0

오류에 대해 이야기 해 주시겠습니까? –

+0

오류의 스크린 샷을 게시했습니다. –

답변

0

다른 사용자의 저장소에서 복제하는 경우, origin 원격 (당신이 origin에 밀어있어 가정)은 사용자의 환매 특약에 연결되어 있습니다.

변경 사항을 커밋하고 밀어 넣기 위해서는 먼저 해당 사용자의 저장소를 포크로 분기하고 포크에서 복제해야합니다. 이렇게하면 리모콘을 리포에 설정하고 원하는대로 커밋하고 푸시 할 수 있습니다.

리모컨을 .git/config 파일로보고 문제가 계속되면 해결할 수 있습니다.

+0

도와 주셔서 감사합니다. 포크는 정확히 수행해야만합니다. –

+0

기꺼이 도와 드리겠습니다. 정답으로 표시해주세요. – earthican

관련 문제