git stash 无法刷新,如何只 pop 一些文件

标签 git

我已经 stash 了我的更改以便进行 git pull,但现在我无法从我的存储中 pop 更改。它看起来像这样:

dave@apollo % git stash pop 
sites/all/themes/foobar122/node--pin.tpl.php: needs merge
unable to refresh index

dave@apollo % git stash show  
 .htaccess                                            | 10 +++++-----
 phpinfo.php                                          |  4 +++-
 sites/all/modules/ajax_comments/ajax_comments.module |  6 +++---
 sites/all/themes/foobar122/node--pin.tpl.php         | 14 +++++++-------
 4 files changed, 18 insertions(+), 16 deletions(-)

有人可以用简单的术语解释我如何在恢复对没有冲突的文件的更改的同时恢复冲突的文件(接受他们的副本)。

最佳答案

从下面的链接。

The message simply means that you have outstanding changes. You also get this e.g. if you stage some changes with git add, then change your mind and do git reset HEAD file with the intention of starting over.


  • what-does-it-mean-when-git-says-a-file-needs-update
  • needs_update
  • 关于git stash 无法刷新,如何只 pop 一些文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14825965/

    相关文章:

    git - "Permission denied (publickey)."Git错误

    git - 在github上追溯一个项目

    git - 如何在不删除和重新 fork 的情况下重新获取 fork 的 Git 存储库?

    git - 在 Git 中将本地 master 分支与远程 master 分支 merge

    git - 是否有 git 标签的标准命名约定?

    git - 一次多次提交的详细信息

    git - .gitignore_global 在 OS X 上保存在哪里?

    混帐流 : bugfixing an upcoming release

    java - 用于开发几个不相关的 util 包的层次结构

    Git rebase 到旧的提交