From 33084634c88dbec252c7dbc7cc64be68df644ba9 Mon Sep 17 00:00:00 2001 From: Andy Pearson Date: Mon, 3 Aug 2015 22:59:43 +0100 Subject: [PATCH 1/2] Example 3: Add files before committing --- version-control/command-line/tutorial.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/version-control/command-line/tutorial.md b/version-control/command-line/tutorial.md index f025dff9..3310479f 100644 --- a/version-control/command-line/tutorial.md +++ b/version-control/command-line/tutorial.md @@ -196,7 +196,7 @@ $ git diff The -/+ indications you can see mean **-** indicates lines removed from the code. - + **+** indicates lines added to the code. ```bash @@ -220,6 +220,7 @@ index 21f15d1..c2031f1 100644 ### After you verify your change, commit and push them ```bash +$ git add . $ git commit -m 'Added git status description' $ git push origin master ``` From bc207135c03f88417b70d3f01bfd486d2ad25c57 Mon Sep 17 00:00:00 2001 From: Andy Pearson Date: Mon, 3 Aug 2015 23:04:34 +0100 Subject: [PATCH 2/2] Example 4: change double to single quotes in echo Bash doesn't like exclamation marks in double quotes: $ echo "oh no!" > index.html -bash: !": event not found --- version-control/command-line/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version-control/command-line/tutorial.md b/version-control/command-line/tutorial.md index 3310479f..0a9f6956 100644 --- a/version-control/command-line/tutorial.md +++ b/version-control/command-line/tutorial.md @@ -230,7 +230,7 @@ $ git push origin master Edit the index.html file and then check the changes. ```bash -$ echo "oh no!" > index.html +$ echo 'oh no!' > index.html ``` > Have a look at changes to the file using `git diff`