I decided to remove the upstream remote reference from my local repository, but git-branch keeps showing remotes/upstream/master. I pruned the references, but it keeps showing upstream. How do I clean it properly?
Here is what I had, what I did, and what I have:
Fetching from
upstreamwas broken, that's why I decided to remove upstream (since I'm not using it anyways):git fetch --all Fetching origin remote: Enumerating objects: 9, done. remote: Counting objects: 100% (9/9), done. remote: Compressing objects: 100% (5/5), done. remote: Total 9 (delta 4), reused 8 (delta 4), pack-reused 0 Unpacking objects: 100% (9/9), done. From github.com:dockerstuff/docker-jupyterhub-deploy a977d21..7393fc7 master -> origin/master Fetching upstream fatal: couldn't find remote ref refs/heads/master error: Could not fetch upstream
$ git remote -v origin [email protected]:dockerstuff/docker-jupyterhub-deploy (fetch) origin [email protected]:dockerstuff/docker-jupyterhub-deploy (push) upstream https://github.com/jupyterhub/jupyterhub-deploy-docker.git (fetch) upstream https://github.com/jupyterhub/jupyterhub-deploy-docker.git (push) $ git branch --all * master remotes/origin/HEAD -> origin/master remotes/origin/master remotes/upstream/master $ git remote remove upstream $ git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/master remotes/upstream/master $ git fetch -p --all Fetching origin $ git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/master remotes/upstream/master git remote -v origin [email protected]:dockerstuff/docker-jupyterhub-deploy (fetch) origin [email protected]:dockerstuff/docker-jupyterhub-deploy (push) $ git remote prune upstream fatal: 'upstream' does not appear to be a git repository fatal: Could not read from remote repository. $ git remote prune origin git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/master remotes/upstream/master Why is
remote/upstram/masterstill there?
originbut your question usesupstream?git branch -r -d upstram/master