如何存储特定文件,而将当前修改的其他文件留在我要保存的存储中?
例如,如果 git status 给我这个:
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")
我只想存储 app/views/cart/welcome.thtml,我该怎么做?类似的东西(但当然这不起作用):
git stash save welcome_cart app/views/cart/welcome.thtml