git版本管理系列(十一)

git版本管理系列(十)

分支为合并前需要删除的情况

nelsen-mac:learngit mac$ git checkout -b a1
M	readme.md
Switched to a new branch 'a1'
nelsen-mac:learngit mac$ git add readme.md 
nelsen-mac:learngit mac$ git commit -m'will be del'
[a1 b9a8222] will be del
 1 file changed, 4 insertions(+), 4 deletions(-)

 切换master分支,删除a1分支

nelsen-mac:learngit mac$ git branch -d a1
error: The branch 'a1' is not fully merged.
If you are sure you want to delete it, run 'git branch -D a1'.

删除失败,根据提示执行git branch -D a1即可以删除

本系列笔记参考:https://www.liaoxuefeng.com/wiki/896043488029600/1216289527823648

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值