标签:content object cycle stat ons bootstra lin tty git
git中删除文件夹的方法简单整理如下:
项番 | 命令 |
---|---|
No.1 | git rm -rf 文件夹名 |
No.2 | git add -A |
No.3 | git commit -m “delete dir” |
No.4 | git push |
[root@host31 src]# git rm -rf static
rm ‘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 static
ls: 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 push
Username for ‘https://github.com‘: liumiaocn
Password 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]#
再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!希望你也加入到我们人工智能的队伍中来!http://www.captainbed.net
标签:content object cycle stat ons bootstra lin tty git
原文地址:https://www.cnblogs.com/firsttry/p/10100378.html