git操作基础:删除文件夹

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

                       

git中删除文件夹的方法简单整理如下:

命令行

                   
项番命令
No.1git rm -rf 文件夹名
No.2git add -A
No.3git commit -m “delete dir”
No.4git push

执行例

[root@host31 src]# git rm -rf staticrm 'src/static/bootstrap/css/bootstrap-theme.css'rm 'src/static/bootstrap/css/bootstrap-theme.css.map'rm 'src/static/bootstrap/css/bootstrap-theme.min.css'rm 'src/static/bootstrap/css/bootstrap-theme.min.css.map'rm 'src/static/bootstrap/css/bootstrap.css'rm 'src/static/bootstrap/css/bootstrap.css.map'rm 'src/static/bootstrap/css/bootstrap.min.css'rm 'src/static/bootstrap/css/bootstrap.min.css.map'rm 'src/static/bootstrap/fonts/glyphicons-halflings-regular.eot'rm 'src/static/bootstrap/fonts/glyphicons-halflings-regular.svg'rm 'src/static/bootstrap/fonts/glyphicons-halflings-regular.ttf'rm 'src/static/bootstrap/fonts/glyphicons-halflings-regular.woff'rm 'src/static/bootstrap/fonts/glyphicons-halflings-regular.woff2'rm 'src/static/bootstrap/js/bootstrap.js'rm 'src/static/bootstrap/js/bootstrap.min.js'rm 'src/static/bootstrap/js/npm.js'[root@host31 src]#此时已经将本地文件夹同时删除[root@host31 src]# ls staticls: cannot access static: No such file or directory[root@host31 src]#[root@host31 src]# git add -A[root@host31 src]# git commit -m "delete static dir"[master b210daa] delete static dir 16 files changed, 10045 deletions(-) delete mode 100644 src/static/bootstrap/css/bootstrap-theme.css delete mode 100644 src/static/bootstrap/css/bootstrap-theme.css.map delete mode 100644 src/static/bootstrap/css/bootstrap-theme.min.css delete mode 100644 src/static/bootstrap/css/bootstrap-theme.min.css.map delete mode 100644 src/static/bootstrap/css/bootstrap.css delete mode 100644 src/static/bootstrap/css/bootstrap.css.map delete mode 100644 src/static/bootstrap/css/bootstrap.min.css delete mode 100644 src/static/bootstrap/css/bootstrap.min.css.map delete mode 100644 src/static/bootstrap/fonts/glyphicons-halflings-regular.eot delete mode 100644 src/static/bootstrap/fonts/glyphicons-halflings-regular.svg delete mode 100644 src/static/bootstrap/fonts/glyphicons-halflings-regular.ttf delete mode 100644 src/static/bootstrap/fonts/glyphicons-halflings-regular.woff delete mode 100644 src/static/bootstrap/fonts/glyphicons-halflings-regular.woff2 delete mode 100644 src/static/bootstrap/js/bootstrap.js delete mode 100644 src/static/bootstrap/js/bootstrap.min.js delete mode 100644 src/static/bootstrap/js/npm.js[root@host31 src]# git pushUsername for 'https://github.com': liumiaocnPassword for 'https://liumiaocn@github.com':Counting objects: 5, done.Compressing objects: 100% (3/3), done.Writing objects: 100% (3/3), 277 bytes | 0 bytes/s, done.Total 3 (delta 2), reused 0 (delta 0)remote: Resolving deltas: 100% (2/2), completed with 2 local objects.To https://github.com/liumiaocn/cycle   72009e4..b210daa  master -> master[root@host31 src]#
  
  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow
这里写图片描述
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值