Re: Why does git stash create two commits?
- From
- Seth Robertson <in-gitvger@baka.org>
- Date
- Jan 30, 2012, 18:25 UTC
- Message-ID
- <201201301825.q0UIPLni016760@no.baka.org>
- In-Reply-To
- <4F26DF7B.7050109@ubuntu.com>
In message <4F26DF7B.7050109@ubuntu.com>, 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