Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tips to delete local branches that has been squash and merged in the remote #192

Merged
merged 1 commit into from
Mar 18, 2021
Merged

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