From 8c4541ae331832d2f39e7df1bf9fe5064f8c6e31 Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Fri, 13 Mar 2015 08:03:01 -0400 Subject: [PATCH] Added git reset and pull commands. --- commands/misc.ipynb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/commands/misc.ipynb b/commands/misc.ipynb index 65c7234..28b4144 100644 --- a/commands/misc.ipynb +++ b/commands/misc.ipynb @@ -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",