Open
Description
How to delete remote branch with JGit? I search over Google and text following code.
git.branchDelete()
.setBranchNames(fullBranch)
.call();
RefSpec refSpec = new RefSpec()
.setSource(null)
.setDestination(fullBranch);
git.push()
.setRefSpecs(refSpec)
.setRemote("origin")
.call();
but it does not work at all. It just deletes local branch.
Metadata
Metadata
Assignees
Labels
No labels