From: Sverre Rabbelier Date: Wed, 21 Apr 2010 21:21:47 GMT Subject: Re: Add warning when there are changes in the index and using -a with git commit Message-ID: In-Reply-To: Heya, On Wed, Apr 21, 2010 at 22:20, Sylvain Rabot wrote: > Many times I had the bad reflex of doing a git commit -as -m "blah > blah" when I was willing to commit only things I had staged in the > index. Me too, and I think I brought it up in the past and it was dismissed as being too annoying, but I'm not sure. Either way, you can work around it by creating your own 'git-co' wrapper that does the check and use that instead of 'git commit'. -- Cheers, Sverre Rabbelier