From 0cc73c682beffac3b906c7cf85bd7d236f6c0557 Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Wed, 10 Jun 2015 16:34:23 -0400 Subject: [PATCH] Added commands to ammend a git commit message. Fixed some git commands not being prefixed with an exclamation mark. --- commands/misc.ipynb | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/commands/misc.ipynb b/commands/misc.ipynb index c1807ef..a9a43ba 100644 --- a/commands/misc.ipynb +++ b/commands/misc.ipynb @@ -10,7 +10,8 @@ "* IPython Notebook\n", "* Git\n", "* Ruby\n", - "* Jekyll" + "* Jekyll\n", + "* Django" ] }, { @@ -214,7 +215,11 @@ "!git checkout — [target]\n", "\n", "# Undo commit but leave files and index\n", - "git reset --soft HEAD~1\n", + "!git reset --soft HEAD~1\n", + "\n", + "# Amend commit message of most recent change\n", + "!git commit --amend\n", + "!git push --force [branch]\n", "\n", "# Create a branch\n", "!git branch [branch]\n", @@ -256,7 +261,7 @@ "!git format-patch origin/master\n", "\n", "# GitHub tutorial:\n", - "!http://try.github.io/levels/1/challenges/9\n", + "http://try.github.io/levels/1/challenges/9\n", "\n", "# BitBucket Setup\n", "!cd /path/to/my/repo\n", @@ -395,7 +400,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", - "version": "2.7.9" + "version": "2.7.10" } }, "nbformat": 4,