最佳答案
我如何隐藏一个特定的文件,而将当前修改的其他文件从我将要保存的存储中删除?
例如,如果git状态给我这个:
younker % gst# On branch master# Your branch is ahead of 'origin/master' by 1 commit.## Changes not staged for commit:# (use "git add <file>..." to update what will be committed)# (use "git checkout -- <file>..." to discard changes in working directory)## modified: app/controllers/cart_controller.php# modified: app/views/cart/welcome.thtml#no changes added to commit (use "git add" and/or "git commit -a")
我只想隐藏应用程序/视图/购物车/welcome.thtml,我该怎么做?类似(但当然这不起作用):
git stash save welcome_cart app/views/cart/welcome.thtml