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

delete remote branches

From
PGPatrick Grimard <pgrimard@gmail.com>
Date
Dec 8, 2009, 20:35 UTC
Message-ID
<9cdb17250912081235m2b061ca5x70fe42749b49670f@mail.gmail.com>

I'm experimenting with Git, just trying to get a feel for it. I created a bare git repo on a server and pushed a local git repo (let's call it DIR1) from my PC to the server. Then from another directory on my local PC (let's call it DIR2), I cloned the repo on the server and checked out a new branch named testBranch. Did some playing with branches to see how they worked, like pushing the branch to the server from DIR2 and fetching it from DIR1, merging it into master and then pushing master back to the server. Now from DIR2, I fetched master from the server, merged in the changes and deleted the remote branch called testBranch using the command "git push origin :testBranch" which seemed to work fine since the command "git branch -r" no longer lists the remote branch. However from DIR1 if I do "git branch -r" I still see the remote branch and can't seem to delete it using the above method. Any idea why this is happening?

Thanks in advance.
Patrick
Next: Andreas Schwab
Message 1 of 2 in “delete remote branches”
  1. Patrick GrimardDec 8, 2009
  2. Andreas SchwabDec 8, 2009

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.