Re: git stash --include-untracked possible destructive behavior
- From
- Brandon Williams <bmwill@google.com>
- Date
- Jun 8, 2017, 22:29 UTC
- Message-ID
- <20170608222949.GA121539@google.com>
- In-Reply-To
- <197975d0-7ec3-0ff4-9201-48226fd3b60c@teichroeb.net>
On 06/08, Joel Teichroeb wrote:
Show 7 quoted lines
> It looks like it's an issue with git clean, as that's what stash > uses internally. You can try your same test, but replace git stash > with "git clean -df" and it will delete Data. Maybe clean should > check if there are any ignored files in an untracked directory and > only remove it if -x is specified? > > Joel
There was someone working on fixing clean, you can look at the patch series at https://public-inbox.org/git/20170523100937.8752-1-sxlijin@gmail.com/ though I'm unsure of the series' status.
-- Brandon Williams