Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » JGit - Delete remote branch(How to delete a remote branch using jgit command line)
JGit - Delete remote branch [message #1077536] Thu, 01 August 2013 21:16 Go to next message
Vilnis TermanisFriend
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 04:54 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 274
Registered: July 2009
Senior 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 22:36 Go to previous message
Vilnis TermanisFriend
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:Automatically generated .gitignore files
Goto Forum:
  


Current Time: Fri Apr 19 05:33:11 GMT 2024

Powered by FUDForum. Page generated in 0.03130 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top