Re: Stashing untracked files

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

 



On Sep 29, 2007, at 11:03 PM, Johannes Schindelin wrote:

Hi,

On Sat, 29 Sep 2007, Neil Macneale wrote:

When using "git stash," in some cases I'd like to stash away files that
are currently untracked. It seems to me like there should be a way to
stash everything in a working directory so that the end result is a
pristine tree. Then applying the stash will reinstate those file as
untracked.

Funny how the same ideas always come in packs: I had the same discussions
a few nights ago on IRC.

Here is why I think it is _wrong_ to stash untracked files: this would
include *.o and *.a, as well as all those binary files, too.

Instead this is what you _should_ do:

git add <the files that you care about>
git stash

You could stash untracked files that are not ignored (I personally ignore *.o, *.a and the like).

--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory


Attachment: PGP.sig
Description: This is a digitally signed message part


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux