git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Find/prune local branches after upstream branch is deleted?
@ 2013-04-19 17:11 Jed Brown
  2013-04-19 17:37 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: Jed Brown @ 2013-04-19 17:11 UTC (permalink / raw)
  To: Git List

Consider this workflow:

$ git checkout -b my/branch
hack, commit, ...
$ git push -u origin my/branch

The branch gets reviewed, merged, and eventually deleted upstream.  The
remote tracking branch gets pruned via 'git fetch --prune' or 'git
remote prune', but that leaves my local branch with an upstream that has
been deleted.  Is there a good way to discover this so I can prune my
local branches?

$ git branch -vv
  my/branch        6d32ec0 [origin/my/branch] The commit message

I can script it, but this seems like a pretty common thing.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-19 20:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19 17:11 Find/prune local branches after upstream branch is deleted? Jed Brown
2013-04-19 17:37 ` Jeff King
2013-04-19 17:50   ` Jed Brown
2013-04-19 18:05     ` Jeff King
2013-04-19 19:30       ` Jed Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).