git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Philip Oakley" <philipoakley@iee.org>
To: "Norman Shapiro" <norm@dad.org>, <git@vger.kernel.org>
Cc: <norm@dad.org>
Subject: Re: Getting the "message" given a branch designation and conversely
Date: Sun, 14 Aug 2016 18:32:00 +0100	[thread overview]
Message-ID: <4B56CDE3883A4341994E6382DF68C438@PhilipOakley> (raw)
In-Reply-To: 201608141458.u7EEwF8P099500@shell1.rawbw.com

From: <norm@dad.org>
>I am learning how to use git. I would like to know how:
>
> Given a branch's designation, such as "master~4", how can I see the 
> message I
> furnished when I created the branch using "git commit"?
>
> Conversely, given the message I furnished to "git commit", when I created 
> a
> branch, how can I see the branch's designation?
>
> Context:
>
>    Operating System: Red Hat Enterprise Linux Workstation release 6.8
>
>    git version: 1.7.1
>
> Thank you, very much.
>
>    Norman Shapiro
> --

Norman,

To see the commit message try 'git log'. You will need a revision range, so 
try 'git help revisions' to set a guide about all the different ways you can 
spell that. While at it, it's worth 'git help glossary' just to understand 
some of the terminology.

--
Philip
'git log HEAD~4^!' 


  reply	other threads:[~2016-08-14 17:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-14 14:58 Getting the "message" given a branch designation and conversely norm
2016-08-14 17:32 ` Philip Oakley [this message]
2016-08-15 12:28 ` Jeff King
2016-08-24 14:39   ` Jakub Narębski

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: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=4B56CDE3883A4341994E6382DF68C438@PhilipOakley \
    --to=philipoakley@iee.org \
    --cc=git@vger.kernel.org \
    --cc=norm@dad.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://80x24.org/mirrors/git.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).