From: Sebastian Gniazdowski Date: Mon, 28 Jan 2019 15:30:31 GMT Subject: Re: There should be a `.gitbless; file, protecting files from git clean Message-ID: In-Reply-To: On 28 stycznia 2019 at 06:05:31, Duy Nguyen (pclouds@gmail.com) wrote: > There's a patch that adds "precious" git attribute [1]. I was going to > resend once the backup-log [2] got reviewed but I might just send it > separately to handle the "git clean" case alone. > > [1] https://public-inbox.org/git/20181111095254.30473-1-pclouds@gmail.com/ > [2] https://public-inbox.org/git/20181209104419.12639-1-pclouds@gmail.com/ The backup log, if done properly, could allow to use git more freely, without nerves that something will beak. I wonder if it could restore also the state before an improper `git clea -dxf' call? I think the chances are low, because this would requrire to save untracked files, but it's worth asking? -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org