I was trying to add a remote repository and assign it to origin
but got this error:
fatal: remote origin already exists.
then I checked all the remote repositories by remote -v
and here is the result:
android https://github.com/hooman-y/cw-omnibus.git (fetch)
android https://github.com/hooman-y/cw-omnibus.git (push)
origin
upstream https://github.com/commonsguy/cw-omnibus.git (fetch)
upstream https://github.com/commonsguy/cw-omnibus.git (push)
It seems origin
is not assigned to any repository and yet it can't be assigned, renamed or deleted. I know this problem is mentioned here but none of the methods works for me.
EDITED:
here is my /.git/config
content:
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[branch "master"]
[remote "android"]
url = https://github.com/hooman-y/cw-omnibus.git
fetch = +refs/heads/*:refs/remotes/android/*
[remote "upstream"]
url = https://github.com/commonsguy/cw-omnibus.git
fetch = +refs/heads/*:refs/remotes/upstream/*