[git] Replace git fetch "gone" tag on merged or removed branches with new git branch --delete-merged flag #231
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -DIf this article is to be believed, git will introduce in version 2.56 a new
--delete-mergedflag to thegit branchcommand. This would possibly remove the need for this line which uses the "gone" tag on a remote branch that has been removed from the upstream; but still present locally.Replace git fetch "gone" tag on merged or removed branches with newto [git] Replace git fetch "gone" tag on merged or removed branches with newgit branch --delete-mergedflaggit branch --delete-mergedflag