Skip to content

Conversation

lmarvaud
Copy link
Contributor

Very usefull when commit policy of the organisation is to squash en merge or rebase and merge the pull requests.

As a complement to git fetch -p :

git fetch -p && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D

source : stackoverflow: Remove tracking branches no longer on remote

Maybe should we also put the git fetch -p && part in git-tips ?! (not sure..)

@hemanth hemanth merged commit 1a97486 into git-tips:master Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants