Git 08文件操作

2018-11-23  本文已影响0人  昵称啦啦啦

Git的文件操作

========

命令

代码

# 修改文件 创建 style.css
nano index.html nano style.css
# 添加文件到索引区
git add .
# 文件更名 index.html -> my.html
git mv index.html my.html
# 删除 style.css 已在索引区需要加上 --cached命令
git rm --cached style.css
上一篇 下一篇

猜你喜欢

热点阅读