From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kelvin White Newsgroups: gmane.emacs.devel Subject: Re: git push precautions Date: Wed, 28 Jan 2015 18:57:49 +0000 Message-ID: References: <20150128032211.21589.96959@vcs.savannah.gnu.org> <87mw53zijz.fsf@building.gnus.org> <54C883B8.6050506@cs.ucla.edu> <87twzbv1x0.fsf@building.gnus.org> <54C88CB2.1030608@cs.ucla.edu> <87iofrv0as.fsf@building.gnus.org> <87a913uzt5.fsf@building.gnus.org> <83mw52or5g.fsf@gnu.org> <87oapilpum.fsf_-_@violet.siamics.net> <83bnlioify.fsf@gnu.org> <87mw52pwka.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6740b2ac806e050dbaf27b X-Trace: ger.gmane.org 1422471502 5994 80.91.229.3 (28 Jan 2015 18:58:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 18:58:22 +0000 (UTC) Cc: Ivan Shmakov , emacs-devel@gnu.org To: David Kastrup , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 28 19:58:22 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YGXoh-0003CD-Uv for ged-emacs-devel@m.gmane.org; Wed, 28 Jan 2015 19:58:20 +0100 Original-Received: from localhost ([::1]:55468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGXoh-0006vp-Gz for ged-emacs-devel@m.gmane.org; Wed, 28 Jan 2015 13:58:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGXoP-0006uS-Ek for emacs-devel@gnu.org; Wed, 28 Jan 2015 13:58:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGXoO-0008TF-CN for emacs-devel@gnu.org; Wed, 28 Jan 2015 13:58:01 -0500 Original-Received: from mail-qa0-f47.google.com ([209.85.216.47]:38397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGXoE-0008RQ-QB; Wed, 28 Jan 2015 13:57:50 -0500 Original-Received: by mail-qa0-f47.google.com with SMTP id n8so17516239qaq.6; Wed, 28 Jan 2015 10:57:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:references:from:date:message-id:subject:to:cc :content-type; bh=e05CbYR8G0GxUcauLg7W9xhjLSPXjkh5cQzVjt1Rps8=; b=KvC0/Ku9xC83Qg0IYP2e4act9305NaVpYWiNZTUukH8P/jDx2hIRPaHgpXX09M004c LVQ9/HWnna7M6CmFDsgnDTE9lLpxRaZYRjUE8F+6B8EDnspO3Cn2HNctwy8PBWEGM+OA xWEv+9abEtUzU1ccPnJJjW2o7+b0RLAl/Ht+uI8PUseIUt3wlsT4vob4VxDIkR8qGiI3 gwzWtk73Coq5FOsQsLX1562YKECFTn+7rQemCEOBwbY3VlYHa7eCNCUYlC1nf0nEcWtG 3wzaCOxdtdc1MdCXeNJgOXRMa+24hxR7UEp+FHbAa5pFHl3lQSA7L37bKiwFPjPpNphF FuTA== X-Received: by 10.224.134.202 with SMTP id k10mr16291126qat.32.1422471470020; Wed, 28 Jan 2015 10:57:50 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.216.47 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181930 Archived-At: --047d7b6740b2ac806e050dbaf27b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I just use `git diff' before every push to see exactly what I'm pushing, and I always specify the remote repo i.e. `git push origin master' On Wed, Jan 28, 2015, 1:52 PM David Kastrup wrote: > Eli Zaretskii writes: > > >> From: Ivan Shmakov > >> Date: Wed, 28 Jan 2015 18:30:57 +0000 > >> > >> My preference is rather =E2=80=98push.default nothing=E2=80=99, s= o that > >> git-push(1) fails loudly should I fail to specify what to push. > > > > IMO (and IME) that's a nuisance that isn't justified. > > git's defaults have historically been so unreasonable that I never push > without explicit mention of both local as well as target reference. It > decidedly is less of a nuisance than having to clean up after Git goes > overboard. > > Nowadays the defaults may be saner (and the setting configurable in the > first place). Still, the "nuisance" is comparatively small, and in > exchange you know just what _any_ version of Git will do. And if you > quote your process, nobody will get double-crossed by following your > example. > > -- > David Kastrup > > > --047d7b6740b2ac806e050dbaf27b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I just use `git diff' before every push to see exactly w= hat I'm pushing, and I always specify the remote repo i.e. `git push or= igin master'


On Wed, Jan 28, 2015, 1:52 PM=C2=A0David Kas= trup <dak@gnu.org> wrote:
Eli Zaretskii <eliz@gnu.org> writes:

>> From: Ivan Shmakov <ivan@siamics.net>
>> Date: Wed, 28 Jan 2015 18:30:57 +0000
>>
>>=C2=A0 =C2=A0 =C2=A0 My preference is rather =E2=80=98push.default = nothing=E2=80=99, so that
>>=C2=A0 =C2=A0 =C2=A0 git-push(1) fails loudly should I fail to spec= ify what to push.
>
> IMO (and IME) that's a nuisance that isn't justified.

git's defaults have historically been so unreasonable that I never push=
without explicit mention of both local as well as target reference.=C2=A0 I= t
decidedly is less of a nuisance than having to clean up after Git goes
overboard.

Nowadays the defaults may be saner (and the setting configurable in the
first place).=C2=A0 Still, the "nuisance" is comparatively small,= and in
exchange you know just what _any_ version of Git will do.=C2=A0 And if you<= br> quote your process, nobody will get double-crossed by following your
example.

--
David Kastrup


--047d7b6740b2ac806e050dbaf27b--