您的位置:首页 > 其它

git 删除分支和删除文件夹

2016-11-29 12:51 267 查看


1、删除分支


1.1查看所有分支:

[plain] view
plain copy

 print?





git branch -a  

得到结果:






1.2删除HEAD分支

[plain] view
plain copy

 print?





git push origin --delete HEAD  


2、删除文件夹


2.1 查看本地分支下的文件

[plain] view
plain copy

 print?





ls  

得到结果:




2.2删除raindow文件夹及其下所有的文件

[plain] view
plain copy

 print?





git rm raindow -r -f  

删除的效果:












2.3同步删除操作到远程分支:

[plain] view
plain copy

 print?





git commit -m "delete raindow"  

同步的效果:




2.3提交分支:

[plain] view
plain copy

 print?





git push origin master  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: