From: Ivo Anjo Date: Wed, 14 Jan 2015 12:15:16 GMT Subject: Re: How to prevent empty git commit --amend Message-ID: In-Reply-To: Hello, On Wed, Jan 14, 2015 at 10:00 AM, Matthieu Moy wrote: > I don't know any way to let Git do the check for you, but > > git diff --staged --quiet || git commit --amend > > should do it. You can alias it like > > [alias] > amend = !git diff --staged --quiet || git commit --amend > > and then use "git amend". Genius! This is exactly what I wanted, thanks! Ivo Anjo