From 1d3271a181dcfdb0c270e14bea51316770033a74 Mon Sep 17 00:00:00 2001 From: James Couball Date: Tue, 3 Oct 2023 12:00:43 -0700 Subject: [PATCH] Document how to delete a remote branch Signed-off-by: James Couball --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 39590f1a..b13203b6 100644 --- a/README.md +++ b/README.md @@ -286,6 +286,9 @@ g.branch('new_branch').delete g.branch('existing_branch').checkout g.branch('master').contains?('existing_branch') +# delete remote branch +g.push('origin', 'remote_branch_name', force: true, delete: true) + g.checkout('new_branch') g.checkout('new_branch', new_branch: true, start_point: 'master') g.checkout(g.branch('new_branch')) @@ -339,6 +342,9 @@ g.repack g.push g.push(g.remote('name')) +# delete remote branch +g.push('origin', 'remote_branch_name', force: true, delete: true) + g.worktree('/tmp/new_worktree').add g.worktree('/tmp/new_worktree', 'branch1').add g.worktree('/tmp/new_worktree').remove