我正在一个简单的Web项目中工作,我在GitHub中创建了仓库
我在本地存储库副本中做了一些更改
command-line-$ touch file1.txt
// after writing some sentence in it, I remove it
command-line-$ rm file1.txt
command-line-$ git status
// deleting : file1.txt
我需要忽略这些更改,我尝试以下命令
command-line-$ git stash
command-line-$ git status
// nothing to commit
这项工作,现在我想清理藏匿处,尝试以下命令
command-line-$ git stash clear
// and
command-line-$ git stash drop stash@{index}
这些命令清除存储,但是如果我在目录中列出文件
command-line-$ ls
index.html
app.js
users.js
auth.js
file1.txt // this file back again to my directory and this is the problem