Added git reset and pull commands.

pull/57/head
Donne Martin 2015-03-13 08:03:01 -04:00
parent a9ea93b872
commit 8c4541ae33
1 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:eacb6ecfdfc78ef076b1c9af4a4dcdb87d90648fff3903459c6ff20ed1df54e4"
"signature": "sha256:2dac2a968d9e20f06438bc20ea8d86a270cf591b873e5dafe7658304d7e8411f"
},
"nbformat": 3,
"nbformat_minor": 0,
@ -156,7 +156,8 @@
"\n",
"# Add or remove from staging area\n",
"git add [target]\n",
"git reset [target]\n",
"git reset [target file or commit]\n",
"git reset --hard origin/master\n",
"\n",
"# Automatically stage tracked files, including deleting the previously tracked files\n",
"git add -u\n",
@ -206,6 +207,9 @@
"# Clone\n",
"git clone git@github.com:repo folder-name\n",
"git clone https://donnemartin@bitbucket.org/donnemartin/tutorial.git\n",
" \n",
"# Update a local repository with changes from a remote repository\n",
"git pull origin master\n",
"\n",
"# Create a file containing a patch\n",
"# git format-patch are like normal patch files, but they also carry information \n",