码迷,mamicode.com
首页 > 其他好文 > 详细

Git删除文件

时间:2018-11-25 16:31:24      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:仓库   移动   handler   att   play   name   ==   app   tle   

以  hello.txt  文件为例

1.在本地和仓库把文件都删除:

rm hello.txt
git rm hello.txt   或者  git add hello.txt
技术分享图片

2.在本地把文件删除了,但是想恢复过来:

git checkout -- hello.txt
技术分享图片

Git删除文件

标签:仓库   移动   handler   att   play   name   ==   app   tle   

原文地址:https://www.cnblogs.com/youpeng/p/10015436.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!