Fatal: Failed to disable 'branch.master.remote'

I am trying to remove a remote git. I just deleted the heroku remote url with the command

$ git remote rm heroku 

but when I try to use it on the remote control for a bitbucket (origin). Error with error

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

where when listing the remote using

 $ git remote -v 

clearly mentioned

 origin git@bitbucket.org :username/myapp.git (fetch) origin git@bitbucket.org :username/myapp.git (push) 

.git / config

 [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [branch "master"] [branch "static-pages"] [remote "origin"] url = git@bitbucket.org :myUserName/mY_Hidden_App.git fetch = +refs/heads/*:refs/remotes/origin/* 
+6
source share
1 answer

This error message ( fatal: could not unset ) should no longer appear with Git 2.12.2 or more (March 2017)

See commit 20690b2 (February 18, 2017) by Ross Lagerwall ( rosslagerwall ) .
(merger of Junio ​​C Hamano - gitster - to commit 3e5c639 , February 27, 2017

" git remote rm X " when the branch has remote X configured as its branch.*.remote value, tried to remove branch.*.remote and branch.*.merge and failed if either was not set.

Make sure the [branch "master"] disappeared from your local configuration, and again with the latest release of Git 2.12.2, this will not happen again.

+2
source

Source: https://habr.com/ru/post/1013934/


All Articles