delete all local branches git

$ git branch | grep -v "master" | xargs git branch -D 

3.6
5
Wai Yan 125 points

                                    git branch | grep -v "master" | xargs git branch -D

3.6 (5 Votes)
0
4.5
4

                                    // hard delete

git branch -D $(git branch)

4.5 (4 Votes)
0
4.5
2

                                    git branch | grep -v "master" | xargs git branch -D

4.5 (2 Votes)
0
4
1
Dexgecko 100 points

                                    // hard delete

git branch -D $(git branch)

4 (1 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
git remove all remote branches except master git delete all local branches except master powershell how to delete all the local branches in git delete all local branch get rid of all branches git github delete all remote branches except master and develop git delete all local branches except master windows how delete local git all branch how to remove all branches in git how to delete all branches in git remove all branches from local git delete all branches locally git delete all local branches but master delete all local branches except current branch delete all git branches except stage delete all in master branch git how to delete all branch git del all branch exept master git delelete all local branch delete all local branches that are not master local remove all branches except master git how to delete all local branches remove all local branches git windows delete all branches git clear all local branches git how to delete all other branches remove all branch locally remove all git branches delete all but master branch delete all branches in git local git delete all branch but master how to delete all local only branches in git git remove all branches except current bash command to delete all git branches local delete all git branch remove all branch in git list out delete all branches except master local remove all local branches git except master clear all branches git how to remove all local branches git delete all branches except master how to remove all my branches in git git delete local branches except master delete all branches except few branches how to remove all local git branch remove all other branches git delete all local branches except for master delete all remote branches except master delete all local branches except master git delete all local branches windows git delete all local branches except develop git remove all local branches delete all branches beside master in git git delete all local branches except current delete all local branch git git branch delete all local branches git delete the branch except master delete local branches git otherb than master git delete all local branches except main remove all local braches git git remove all branches locally git delete all branch git remove all branches delete all local git branches except master how to delete all branch except master git delete all local branch delete all the local branches git git delete all local branches git remove all branches except develop delete all branch in local except master how to remove all the local branches in git git delete all branches but one git delete all local branches command line git delete all branch local delete all local branches git script to delete all branches except master delete all branch except master git delete all brach except master git delete all local branches but stage delete all local branches apart from master delete all branches except master locall delete all branch local git git delete all branches except master remove all local branches git deleting all local branches git git delete all local branches except master delete all local branches how to delete all branches in git except master git remove all branches except master remove all local branch git git remove all local branch
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source