git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Baumann <waste.manager@gmx.de>
To: jhapk <pradeep.kumar.jha@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Deleting remote branches
Date: Fri, 26 Mar 2010 07:16:52 +0100	[thread overview]
Message-ID: <20100326061652.GA28279@m62s10.vlinux.de> (raw)
In-Reply-To: <1269583743012-4802313.post@n2.nabble.com>

On Thu, Mar 25, 2010 at 10:09:03PM -0800, jhapk wrote:
> 
> Hi,
> 
> I have tried that and I get the following message
> 
> [pradeep@scaramanga cffc]$ git push origin:test
                                      ^^^^^^^^^^^

Notice the missing space. From the git push manpage:

git push origin :experimental
               ^
    Find a ref that matches experimental in the origin repository (e.g.
    refs/heads/experimental), and delete it.


The syntax (with all the unused stuff removed) is 'git push <repository> <refspec>'
If you don't supply any repository (as you did with your cmdline), the default 
remote repository is used. Your command tried to push the local branch 'origin' into
the remote branch 'test' of your default remote repository. Correct would be

git push :test   # or git push origin :test

The refspec :test means push empy/nothingness into the branch 'test', which will delete it.

--
Peter

  reply	other threads:[~2010-03-26  6:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-26  5:46 Deleting remote branches jhapk
2010-03-26  6:00 ` Ramkumar Ramachandra
2010-03-26  6:09   ` jhapk
2010-03-26  6:16     ` Peter Baumann [this message]
2010-03-26  7:10 ` Johannes Sixt
2010-03-26 15:52 ` Chris Packham
  -- strict thread matches above, loose matches on Subject: below --
2010-06-19 18:17 jhapk
2010-06-20  4:49 ` Jon Seymour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100326061652.GA28279@m62s10.vlinux.de \
    --to=waste.manager@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=pradeep.kumar.jha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).