From ce2749f6c594b5a55bcc6f0fefcb0c42f65d3e2d Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Mon, 27 Apr 2015 21:16:25 -0400 Subject: [PATCH] Added git command to show log and diff of commit. --- commands/misc.ipynb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/misc.ipynb b/commands/misc.ipynb index de04cc2..0fce712 100644 --- a/commands/misc.ipynb +++ b/commands/misc.ipynb @@ -204,6 +204,9 @@ "!git diff --staged\n", "!git diff --cached\n", "\n", + "# Show log message of commit and diff\n", + "!git show $COMMIT\n", + "\n", "# Undo a file that has not been added\n", "!git checkout — [target]\n", "\n",