これは、以前に隠しが適用されていた場合や適用されなかった場合に発生します。現在のブランチにはすでに変更が加えられています。次のシナリオを検討し
$ git diff
diff --git a/test.txt b/test.txt
index e69de29..9daeafb 100644
--- a/test.txt
+++ b/test.txt
@@ -0,0 +1 @@
+test
$ git stash
Saved working directory and index state WIP on master: b1d46d2 test.txt
HEAD is now at b1d46d2 test.txt
今、私たちは手でその行を再度追加し、それをコミット:
$ git diff
diff --git a/test.txt b/test.txt
index e69de29..9daeafb 100644
--- a/test.txt
+++ b/test.txt
@@ -0,0 +1 @@
+test
$ git commit -a
[master 8efb415] test.txt
1 files changed, 1 insertions(+), 0 deletions(-)
$ git stash list
[email protected]{0}: WIP on master: b1d46d2 test.txt
$ git stash apply [email protected]{0}
# On branch master
nothing to commit (working directory clean)
ここgit stash apply
は何もしません。
'git stash list'と' git status'の出力を投稿できますか? –
私はおそらく、私はこれのようなエンディングにいくつかの間違いをしたと思います。どのように私はそれらの変更を覚えて手動でそれらをコード化...あなたの助けをありがとう。この質問を閉じるために自分自身を投票する – kumar