unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ivan Shmakov <ivan@siamics.net>
To: Emacs developers <emacs-devel@gnu.org>
Subject: git push precautions
Date: Wed, 28 Jan 2015 18:30:57 +0000	[thread overview]
Message-ID: <87oapilpum.fsf_-_@violet.siamics.net> (raw)
In-Reply-To: <CAP_d_8VEDQSwbYAGyjoxSe73vU5u+akkqz3Fu_-c7LQJWjW0Cg@mail.gmail.com> (Yuri Khan's message of "Wed, 28 Jan 2015 23:32:34 +0700")

>>>>> Yuri Khan <yuri.v.khan@gmail.com> writes:

[…]

 > A good thing to do before pushing is to actually see the commit
 > graph, in gitk or gitg or gitx or in a pinch “git log --graph
 > --decorate --oneline”, 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 ‘-p’ there and re-visit the changes.  With this option,
	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 — always “git push
 > origin master”, never “git push”.  (“git config push.default simple”
 > helps but is not everybody’s default.)

	My preference is rather ‘push.default nothing’, so that
	git-push(1) fails loudly should I fail to specify what to push.

	And using $ git push -n does no harm, sure.

-- 
FSF associate member #7257  np. En akvo de la klara fonto — Jacques Yvart



  parent reply	other threads:[~2015-01-28 18:30 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150128032211.21589.96959@vcs.savannah.gnu.org>
     [not found] ` <E1YGJCm-0005dC-5P@vcs.savannah.gnu.org>
2015-01-28  3:32   ` master 7f4f16b: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs Lars Ingebrigtsen
2015-01-28  4:02     ` Lars Ingebrigtsen
2015-01-28  6:37     ` Paul Eggert
2015-01-28  6:45       ` Lars Ingebrigtsen
2015-01-28  7:16         ` Paul Eggert
2015-01-28  7:20           ` Lars Ingebrigtsen
2015-01-28  7:31             ` Lars Ingebrigtsen
2015-01-28 15:34               ` Eli Zaretskii
2015-01-28 15:45                 ` Andreas Schwab
2015-01-28 16:32                   ` Yuri Khan
2015-01-28 17:24                     ` Eli Zaretskii
2015-01-28 17:39                       ` Yuri Khan
2015-01-28 17:46                         ` Eli Zaretskii
2015-01-28 17:53                           ` Yuri Khan
2015-01-28 18:30                     ` Ivan Shmakov [this message]
2015-01-28 18:42                       ` git push precautions Eli Zaretskii
2015-01-28 18:52                         ` David Kastrup
2015-01-28 18:57                           ` Kelvin White
2015-01-28 19:12                             ` Ivan Shmakov
2015-01-28 19:15                           ` Eli Zaretskii
2015-01-28 19:34                             ` David Kastrup
2015-01-29  5:39                             ` Yuri Khan
2015-01-29 16:03                               ` Eli Zaretskii
2015-01-29 17:47                                 ` Paul Eggert
2015-01-29 17:50                                   ` Eli Zaretskii
2015-01-29 17:57                                     ` Ivan Shmakov
2015-01-28 17:21                   ` master 7f4f16b: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs Eli Zaretskii
2015-01-28 17:46                     ` Andreas Schwab
2015-01-28 18:39                       ` Eli Zaretskii
2015-01-28 19:07                         ` git push precautions Ivan Shmakov
2015-01-29  9:07                         ` master 7f4f16b: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs Andreas Schwab
2015-01-29 10:40                   ` Nicolas Richard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oapilpum.fsf_-_@violet.siamics.net \
    --to=ivan@siamics.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).