emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Git help requested: "git stash pop" is doing an unwanted "git add".


From: Eli Zaretskii
Subject: Re: Git help requested: "git stash pop" is doing an unwanted "git add". Why?
Date: Mon, 21 Dec 2015 05:35:06 +0200

> Date: Sun, 20 Dec 2015 22:01:28 +0000
> From: Alan Mackenzie <address@hidden>
> 
> I'm clearing out a "stash stack" in my master repository copy.  I've
> just done "git stash pop", expecting git to pop the changes into my
> working directory.
> 
> Well, there were 2 files with conflicts - fair enough.  But with all the
> other files, git has had the cheek to do a "git add" (I think the jargon
> for this is "moved the files to the staging area"), leaving me with the
> hassle of doing a "git reset" on quite a lot of files.
> 
> Why has the "git stash pop" done this, and how can I call "git stash
> pop" in the future, avoiding this annoying problem?

It's "git stash pop", yes.  You need to "git reset" after "stash pop",
if you want to be sure the changes are not staged (a.k.a. "in the
index").



reply via email to

[Prev in Thread] Current Thread [Next in Thread]