From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.devel Subject: git push precautions Date: Wed, 28 Jan 2015 18:30:57 +0000 Message-ID: <87oapilpum.fsf_-_@violet.siamics.net> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422469906 11063 80.91.229.3 (28 Jan 2015 18:31:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 18:31:46 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 28 19:31:36 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 1YGXOl-0004eV-58 for ged-emacs-devel@m.gmane.org; Wed, 28 Jan 2015 19:31:31 +0100 Original-Received: from localhost ([::1]:55344 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGXOk-0003SN-LU for ged-emacs-devel@m.gmane.org; Wed, 28 Jan 2015 13:31:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGXOR-0003BG-Jo for emacs-devel@gnu.org; Wed, 28 Jan 2015 13:31:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGXOQ-0005xn-0M for emacs-devel@gnu.org; Wed, 28 Jan 2015 13:31:11 -0500 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:36563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGXOP-0005xL-NB for emacs-devel@gnu.org; Wed, 28 Jan 2015 13:31:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=QG7+OCl58hqdhvPyRHJLIa6Rimka/6TGkpHoBLJxrvI=; b=mZq8pIk4O8HcE8NEU233Jk3LfQRAV16ZplUYX2yJyJWwyhKAzR41jrRHGr8QlHTKii31Axfgl8Pv2CrfMDUpN+tkDGsgdjdVBZaealinoZFT1DFkntwYwu3JXp4YCZyrqbv5eGaNfOJauzGWQaotphKlGVbtVcT/GR+Q8ohx1Jo=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YGXOL-00034M-QO for emacs-devel@gnu.org; Wed, 28 Jan 2015 18:31:06 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YGXOD-0004m8-Vl for emacs-devel@gnu.org; Thu, 29 Jan 2015 01:30:58 +0700 Mail-Followup-To: Emacs developers In-Reply-To: (Yuri Khan's message of "Wed, 28 Jan 2015 23:32:34 +0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:4f8:d15:1b86::2 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:181926 Archived-At: >>>>> Yuri Khan writes: [=E2=80=A6] > A good thing to do before pushing is to actually see the commit > graph, in gitk or gitg or gitx or in a pinch =E2=80=9Cgit log --graph > --decorate --oneline=E2=80=9D, with both the current local and remote > branches displayed. If the intent is to push just a sequence of changes to a branch (that is: with no merges involved), something like $ git log origin/branch..branch should suffice. Personally, I also add =E2=80=98-p=E2=80=99 there and re-visit the changes. With this o= ption, git-log(1) produces output similar (AIUI) to git-show(1), for which I had no use so far. > And always be explicit about what you are pushing =E2=80=94 always =E2= =80=9Cgit push > origin master=E2=80=9D, never =E2=80=9Cgit push=E2=80=9D. (=E2=80=9Cgit= config push.default simple=E2=80=9D > helps but is not everybody=E2=80=99s default.) My preference is rather =E2=80=98push.default nothing=E2=80=99, so that git-push(1) fails loudly should I fail to specify what to push. And using $ git push -n does no harm, sure. --=20 FSF associate member #7257 np. En akvo de la klara fonto =E2=80=94 Jacques= Yvart