Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Feb 23, 2012
  1. @felipec @gitster

    push: add '--prune' option

    felipec authored gitster committed
    When pushing groups of refs to a remote, there is no simple way to remove
    old refs that still exist at the remote that is no longer updated from us.
    This will allow us to remove such refs from the remote.
    With this change, running this command
     $ git push --prune remote refs/heads/*:refs/remotes/laptop/*
    removes refs/remotes/laptop/foo from the remote if we do not have branch
    "foo" locally anymore.
    Signed-off-by: Felipe Contreras <>
    Signed-off-by: Junio C Hamano <>
Something went wrong with that request. Please try again.