如何隐藏一个特定文件,而将其他当前已修改的文件保存在我要保存的隐藏文件之外?
例如,如果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