..." to unstage) deleted: Application/Home/View/Index/Index.htmlApplication/Home/View/Index/Index.html 记住这个工作区告...">
赞
踩
$ git status
On branch dev
Your branch is up-to-date with 'origin/dev'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
deleted: Application/Home/View/Index/Index.html
Application/Home/View/Index/Index.html 记住这个
工作区告诉我,你把这个文件删除了,那么接下来是这样的
一,执行命令:
$ git reset HEAD Application/Home/View/Index/Index.html(注释:上面的那个路径)
Unstaged changes after reset:
D Application/Home/View/Index/Index.html
二,执行:
git checkout Application/Home/View/Index/Index.html
好啦,你误删的文件回来了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。