Re: Why does git stash create two commits?

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

 



In message <4F26DF7B.7050109@xxxxxxxxxx>, Phillip Susi writes:

    git stash makes two commits, one that has no changes from the base,
    and one to stash your changes in.  Why?

git-stash can make up to three commits:

working directory (of files git knows about)
index
working directory (of files git does not know about)

The third commit only appears if you use --all or --include-untracked.

Most likely you do not use -u/-a and your index has not been touched
yet, so you only see two commits, of which one is empty.

					-Seth Robertson
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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]