Added commands to ammend a git commit message. Fixed some git commands not being prefixed with an exclamation mark.

This commit is contained in:
Donne Martin 2015-06-10 16:34:23 -04:00
parent d35262c142
commit 0cc73c682b

View File

@ -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,