Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » JGit - Delete remote branch(How to delete a remote branch using jgit command line)
JGit - Delete remote branch [message #1077536] Thu, 01 August 2013 17:16 Go to next message
Vilnis Termanis
Messages: 2
Registered: August 2013
Junior Member
Hi,

I'm trying to delete a remote branch. I've tried:
$ jgit branch -a
  help
* master
  temp
  origin/master
  origin/branch_to_delete
$ jgit branch -d -r origin/branch_to_delete
Deleted remote branch branch_to_delete
$ jgit push origin :branch_to_delete
To amazon-s3://.jgit@abcd1234/projects/somewhere
 X [no match]        branch_to_delete
$ jgit fetch
 * [new branch]      branch_to_delete -> origin/branch_to_delete


What am I doing wrong? Or does JGit command line currently not support remote branch deletion? (I've searched the forums so apologies if I've missed the answer to this.)

Regards,
VT

Re: JGit - Delete remote branch [message #1077743 is a reply to message #1077536] Fri, 02 August 2013 00:54 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian Halstrick
Messages: 99
Registered: July 2009
Member
When pushing to Remote have you Tried to Push to a Full ref? Like: "push origin :refs/heads/branch_to_delete"

Ciao
Chris
Re: JGit - Delete remote branch [message #1079635 is a reply to message #1077743] Sun, 04 August 2013 18:36 Go to previous message
Vilnis Termanis
Messages: 2
Registered: August 2013
Junior Member
Thank you, that works.
Previous Topic:How to view an old version of a non-text file?
Next Topic:How to create a new tag?
Goto Forum:
  


Current Time: Wed Jul 30 21:28:18 EDT 2014

Powered by FUDForum. Page generated in 0.01846 seconds