Added git command to undo commit but leave files and index.

This commit is contained in:
Donne Martin 2015-05-30 11:13:56 -04:00
parent 1cdb2ae856
commit 0463617683

View File

@ -210,6 +210,9 @@
"# Undo a file that has not been added\n",
"!git checkout — [target]\n",
"\n",
"# Undo commit but leave files and index\n",
"git reset --soft HEAD~1\n",
"\n",
"# Create a branch\n",
"!git branch [branch]\n",
"\n",