git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Deleting remote branches

From
Jjhapk <pradeep.kumar.jha@gmail.com>
Date
Mar 26, 2010, 05:46 UTC
Message-ID
<1269582415273-4802262.post@n2.nabble.com>
Hi,
I had a whole bunch of branches in my local and a remote repository. I
deleted all the redundant branches to be left with only three now. So the
result of $git branch on my local repository is
[pradeep@scaramanga cffc]$ git branch
  jeff
  master
* work
and on the remote directory which is called 'origin' it returns
[pradeep@scaramanga CFFC.git]$ git branch
  RANSmodel
* master
  work
But when I type the following command on my local branch, 
[pradeep@scaramanga cffc]$ git branch -a
  jeff
  master
* work
  origin/HEAD
  origin/RANSmodel
  origin/bluffbody
  origin/counterflow
  origin/flamelet
  origin/jeff
  origin/master
  origin/test
  origin/work
I still get all these branches which I deleted in my remote 'origin'.
My .git/config file looks like this
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = /nfs/carv/d1/people/pradeep/Repositories/CFFC.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[remote "jeff"]
        url = /nfs/kris/d1/people/jeff/cffc
        fetch = +refs/heads/pradeep:refs/remotes/jeff/pradeep
[branch "master"]
        remote = origin
        merge = refs/heads/master
[branch "work"]
        remote = origin
        merge = refs/heads/work
[push]
        default = matching
[branch "jeff"]
        remote = jeff
        merge = refs/heads/pradeep

Does anyone know why am I still getting branhces like origin/test when I do $git branch -a

-- 
View this message in context: http://n2.nabble.com/Deleting-remote-branches-tp4802262p4802262.html
Sent from the git mailing list archive at Nabble.com.
Next: Ramkumar Ramachandra
Message 1 of 6 in “Deleting remote branches”
  1. jhapkMar 26, 2010
  2. Ramkumar RamachandraMar 26, 2010
  3. jhapkMar 26, 2010
  4. Peter BaumannMar 26, 2010
  5. Johannes SixtMar 26, 2010
  6. Chris PackhamMar 26, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.