How to list and delete branches
来源:互联网 发布:js 设置style display 编辑:程序博客网 时间:2024/05/17 05:19
List branches
# list your local branches$ git branch# list your remote branches$ git branch -r# list both remote and local branches$ git branch -a
See the last commit on each Branch
$ git branch -v
List merged or not merged branches
# list the branches that are already merged into the branch you're on$ git branch --merged# list the branches that contain work you haven't yet merged in$ git branch --no-merged
Delete branches
# delete a local branch$ git branch -d <<local_branch_name>># delete a remote branch$ git push origin :<<remote_branch_name>>
If you have other branches that contain work that haven’t merged in yet, trying to delete it with git branch -d
will fail.
But if you really do want to delete the branch and lose that work, you can force it with -D.
# force to delete an unmerged branch$ git branch -D <<local_branch_name>>
Reference
Git Branching - Branch Management
How to list and delete branches
0 0
- How to list and delete branches
- how to list branches of android source tree
- How To Use Git Branches
- git push and delete remote branches
- how to merge dict and list
- How To Delete BOM...?
- how to clone all remote branches in git
- List of maintainers and how to submit kernel changes
- BW: How To Delete Workbook
- BW: How To Delete Workbook
- how to delete tfspreview project
- How to delete live snapshots
- How to delete cocos2d templates?
- How to delete '\n' char
- git delete remote branches
- How to Delete an Address from the Outlook Auto-Complete List
- How to delete a large number of data in SharePoint for List when refreshing data?
- How to disable certain HTTP methods (PUT, DELETE, TRACE and OPTIONS) in JBOSS7
- 挨拶
- 欢迎使用CSDN-markdown编辑器
- Window下使用虚拟机Ubuntu编译Ffmpeg(编译的只有arm平台下的)
- 7.29总结
- Linux线程-互斥锁pthread_mutex_t
- How to list and delete branches
- Retrofit2的简单使用(一)
- 两幅相同大小图像的相似程度的两个评价指标-PSNR和SSIM
- Java技术体系图
- Codeforces 478C Table Decorations【贪心】【思维】
- Android保存图片到系统图库
- Linux多进程多线程互斥同步例子
- C#扩展(2):Random的扩展
- js拼接json字符串