Remove all your local git branches but keep master
2024-08-29 03:42:01
Sometimes after a sprint, all the remaining branches are just taking up space.
Here's a small snippet to remove all your local branches in one go.
git branch | grep -v "master" | xargs git branch -D
最新文章
- RegExp类型exec()方法的返回值说明
- UIView的几个layout方法
- LDA的Python实现源码
- TYVJ博弈论
- js实现打开本地文件或文件夹
- SharePoint2007:解决第二回收站大数据无法删除问题
- CLR via C#(13)-浅谈事件
- POI 导出Excel
- JavaWeb学习记录(十九)——开发JSTL自定义标签
- spark新能优化之reduceBykey和groupBykey的使用
- 【基于spark IM 的二次开发笔记】第一天 各种配置
- 经历:easyui的layout自适应高度布局
- Spring-AOP实践 - 统计访问时间--StopWatch
- C++的Json解析库:jsoncpp和boost
- JS实现 阿拉伯数字金额转换为中文大写金额 可以处理负值
- lower_bound和upper_bound的实现和基本用法
- spring学习 十 schema-based 异常通知,和环绕通知
- K-means算法(理论+opencv实现)
- mvc EF 从数据库更新实体,添加视图实体时添加不上的问题
- LeetCode 队列与BFS--岛屿的数量
热门文章
- python的版本会导致IBus设置(中文输入法)出错
- python笔记三:函数式编程
- 第2天:Ansible-Inventory管理
- 2017icpc 乌鲁木齐网络赛
- 【构造】Codeforces Round #423 (Div. 1, rated, based on VK Cup Finals) B. High Load
- 【推导】Codeforces Round #364 (Div. 2) D. As Fast As Possible
- 每天一个linux命令21之ln: linux 下的软链和硬链
- 调整Chrome中文字体为雅黑
- How do I find what queries were executing in a SQL memory dump?-----stack
- nodejs+mysql入门实例