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