[quote=“troubadour, post:223, topic:108”]Now, I’m stuck with the following:
$ git remote add troubadour git@github.com:troubadour/apparmor-profile-torbrowser.git
fatal: remote troubadour already exists.
$ git remote rm troubadoour
error: Could not remove config section 'remote.troubadoour'
$ git push troubadoour master
fatal: 'troubadoour' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
A sort of a vicious cycle…[/quote]
Please post your .git/config.
Here is an example of mine.
(cd into apparmor-profile-icedove folder first)
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@github.com:Whonix/apparmor-profile-torbrowser.git
fetch = +refs/heads/*:refs/remotes/origin/*
[remote "adre"]
url = git@github.com:adrelanos/apparmor-profile-torbrowser.git
fetch = +refs/heads/*:refs/remotes/adre/*
[remote "troubadoour"]
url = https://github.com/troubadoour/apparmor-profile-torbrowser.git
fetch = +refs/heads/*:refs/remotes/troubadoour/*
If I had a problem, I would manually delete the following section.
[remote "origin"]
url = git@github.com:Whonix/apparmor-profile-torbrowser.git
fetch = +refs/heads/*:refs/remotes/origin/*
[remote "adre"]
url = git@github.com:adrelanos/apparmor-profile-torbrowser.git
fetch = +refs/heads/*:refs/remotes/adre/*
[remote "troubadoour"]
url = https://github.com/troubadoour/apparmor-profile-torbrowser.git
fetch = +refs/heads/*:refs/remotes/troubadoour/*
(That is a working config by the way. If you replace “apparmor-profile-torbrowser” with “apparmor-profile-icedove” it should work as well.)
Eventually you did run git as root before and now try to run git as user? Always run git as user. Not root. If that is the case, to fix it, run.
(cd into apparmor-profile-icedove folder first)
And if all cords break, since you haven’t pushed apparmor-profile-icedove to any git repository yet, a very easy solution to get rid of this, you have the luxury of being able to get rid of your whole git folder (in case you don’t care about git history, which you probably do not at this point). [Later on there will be no such luxury, because then it would break the repo for others.]
(cd into apparmor-profile-icedove folder first)