From: Junio C Hamano Date: Mon, 05 Nov 2018 01:12:07 GMT Subject: Re: "git checkout" safety feature Message-ID: In-Reply-To: <6afef19d-08f6-9cce-a491-3a49808c57ec@urlichs.de> Matthias Urlichs writes: > A recent discussion on LWN https://lwn.net/Articles/770642/ noted that > "git checkout " does not warn if one if the files has > been modified locally, nor is there an option to do so. > > IMHO that should be fixed, preferably by somebody who knows git's > internals well enough to do so in half an hour ;-) "git checkout " is a feature to overwrite local changes. It is what you use when you make a mess editing the files and want to go back to a known state. Why should that feature be destroyed?