2017-01-10 2 views
6

원격 제거하려고합니다. 난 그냥 명령치명적인 : 'branch.master.remote'를 해제 할 수 없습니다.

$ git remote rm heroku 

와 Heroku가 원격 URL을 제거하지만, 한 내가의 bitbucket (원점)에 대한 원격에서이를 사용하려고하면. 그것은

$ git remote -v 

와 원격 나열 할 때 명확하게 언급의 오류

git remote rm origin   
fatal: could not unset 'branch.master.remote' 

실패

origin [email protected]:username/myapp.git (fetch) 
origin [email protected]:username/myapp.git (push) 

.git/config에

[core] 
    repositoryformatversion = 0 
    filemode = true 
    bare = false 
    logallrefupdates = true 
[branch "master"] 
[branch "static-pages"] 
[remote "origin"] 
    url = [email protected]:myUserName/mY_Hidden_App.git 
    fetch = +refs/heads/*:refs/remotes/origin/* 
+0

Bitbucket에 대한 권한이 있습니까? –

+0

@TimBiegeleisen 확실하지 않습니까? 어떻게 확인합니까? – AbhimanyuAryan

+0

지난번에 나는 동일한 명령으로 Github에 링크 된 원격 URL을 제거하고 정상적으로 작동했습니다. bitbucket과 뭔가 다른 점이 있습니까? 일부 조정을 위해 로컬 컴퓨터에서이 저장소를 복제했습니다. 원격 링크를 설정하고 싶지 않습니다. 혹시 내가 뭔가 잘못하거나 무언가를 망치면. – AbhimanyuAryan

답변

2

이 오류 메시지 (fatal: could not unset)는 Git 2.12.2 이상 (2017 년 3 월)

commit 20690b2 ()을 참조하십시오. 분기가 branch.*.remote의 값으로 구성 X 원격 갖는 경우 (commit 3e5c639Junio C Hamano -- gitster -- 의해 병합 된 2017 년 27 이월)

"git remote rm X"는, branch.*.remotebranch.*.merge을 제거하는 시도 중 하나가 설정되지 않은 경우에 실패했습니다.

[branch "master"] 행이 로컬 설정에서 사라 졌는지 확인하고 어제 발표 된 최신 Git 2.12.2를 다시 사용하면 다시 발생하지 않습니다.

+1

최신 버전으로 업그레이드하면 도움이되었습니다. – CodeGroover

관련 문제