gh operations that delete the remote branch leave a dangling reference in the local git repo #8515
Labels
enhancement
a request to improve CLI
gh-pr
relating to the gh pr command
needs-triage
needs to be reviewed
Describe the bug
any operation like
gh pr merge -d
that deletes a remote branch leaves a reference locally to the remote branch. This can be seen by doinggit fetch --prune
after and observing a line starting with- [deleted] (none) ->
or by any of the operations fromgit
that will show remote references. They will all show the remote branch as still existing an allow referencing it in any local git command before thegit fetch --prune
.Steps to reproduce the behavior
gh pr merge -d
thengit fetch --prune
Expected vs actual behavior
Expected behavior is that
git fetch --prune
shows no changesLogs
The text was updated successfully, but these errors were encountered: