From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geoffrey De Smet Subject: Re: git reset respect remote repo (make git idiot proof) Date: Thu, 04 Oct 2012 10:59:36 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Fri Oct 05 03:31:26 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TJwkX-0001e5-CW for gcvg-git-2@plane.gmane.org; Fri, 05 Oct 2012 03:30:45 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756065Ab2JEBaf (ORCPT ); Thu, 4 Oct 2012 21:30:35 -0400 Received: from plane.gmane.org ([80.91.229.3]:41319 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755791Ab2JEBae (ORCPT ); Thu, 4 Oct 2012 21:30:34 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TJwit-0000hg-3E for git@vger.kernel.org; Fri, 05 Oct 2012 03:29:03 +0200 Received: from 99.1-241-81.adsl-dyn.isp.belgacom.be ([81.241.1.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Oct 2012 03:29:03 +0200 Received: from ge0ffrey.spam by 99.1-241-81.adsl-dyn.isp.belgacom.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Oct 2012 03:29:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 99.1-241-81.adsl-dyn.isp.belgacom.be User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Op 03-10-12 18:40, Phil Hord schreef: > But I feel your pain. I think the solution lies in relegating 'reset' > to the plumbing or the power-user realm of commands since I feel it is > quite overloaded and sometimes dangerous. There was a thread some > months back heading in this direction, but I failed to keep it going. > > http://comments.gmane.org/gmane.comp.version-control.git/185825 I personally use git reset a lot: - Try an experiment - Commit a few commits as the experiment progresses - figure out that the experiment is a dead end - git reset all those _local_ commits The point is: they are local commits, so no harm done. But there's nothing preventing me from resetting pushed commits too, which would mean harm.