Skip to content

Instantly share code, notes, and snippets.

@Hordern
Last active August 30, 2017 20:41
Show Gist options
  • Save Hordern/04fda0e3c20a94d4a69b3eb108b5ad9d to your computer and use it in GitHub Desktop.
Save Hordern/04fda0e3c20a94d4a69b3eb108b5ad9d to your computer and use it in GitHub Desktop.

Revisions

  1. Hordern revised this gist Aug 30, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions git_commands_1
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    /* show last commit comment */
    git log -1 --pretty=%B

    /* This will Show just the first line of the last n commit messages. */
    git log --oneline -n

    /* show last commit comment and code */
    git show

  2. Hordern created this gist Aug 30, 2017.
    6 changes: 6 additions & 0 deletions git_commands_1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    /* show last commit comment */
    git log -1 --pretty=%B

    /* show last commit comment and code */
    git show