git, strange upstream entry which i cant get rid of

if i do

git remote -v

i get

origin  https://..../foo.git (fetch)
origin  https://..../foo.git (push)

this last upstream line there prevents me from adding a real upstream which i wanna merge from.

my config file looks like this:

    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
    hideDotFiles = dotGitOnly
[remote "origin"]
    url = https://..../foo.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master 

when i do

git fetch upstream

i get this error:

fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

how can i get rid of that upstream?

  • Msysgit git no longer finds ssh keys
  • Why is 'Updating the Git index failed' displayed
  • Git: Auto commit contents of a windows folder
  • How can I use Pik for Ruby in Git Bash on Windows?
  • Git: How to share only selected folders and files from a repository to allow 2 teams to collaborate on it, but not share the whole code base?
  • git review -s Problems encountered installing commit-msg hook
  • Gitosis cloning out on non-default port
  • Change git hook credentials in Windows
  • One Solution collect form web for “git, strange upstream entry which i cant get rid of”

    Git has several scopes where config is set : system ($(prefix)/etc/gitconfig), global (~/.gitconfig) and local (.git/config of the current repository).

    Since there is nothing about upstream in your local scope, you have to check the system and global scopes. It could simply be a write access permission to associated files.

    Git Baby is a git and github fan, let's start git clone.