From eca3b58430e0362e078baa24a549c0940d949063 Mon Sep 17 00:00:00 2001 From: ajesler Date: Tue, 8 Aug 2017 20:25:30 +1200 Subject: [PATCH 1/3] Update the everyday git link in the Readme references --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 63c9d30..f2ef3de 100644 --- a/README.markdown +++ b/README.markdown @@ -487,7 +487,7 @@ I throughly recommend these resources to continue your Git practice: - http://git-scm.com Official website, with very useful help, book and videos - http://gitref.org -- http://www.kernel.org/pub/software/scm/git/docs/everyday.html +- http://www.kernel.org/pub/software/scm/git/docs/everyday.html Author ------ From 565c685b9a47348ff00c7140ee28e24f50948104 Mon Sep 17 00:00:00 2001 From: ajesler Date: Tue, 8 Aug 2017 21:34:22 +1200 Subject: [PATCH 2/3] Fix the create branch commands to match the tutorial --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index f2ef3de..4974ea7 100644 --- a/README.markdown +++ b/README.markdown @@ -232,9 +232,9 @@ The `*` should indicate the current branch you are on, which is `master`. If you wish to start another branch, use -`git checkout -b (new-branch-name)` : +`git branch (new-branch-name)` : - $ git checkout -b exp1 + $ git branch exp1 Try git branch again to check which branch you are currently on: From 61c20e71b146826e6907c56d67a1bb551b364b41 Mon Sep 17 00:00:00 2001 From: ajesler Date: Tue, 8 Aug 2017 21:35:37 +1200 Subject: [PATCH 3/3] Add an explanation of how checkout -b creates a branch and switches to it --- README.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.markdown b/README.markdown index 4974ea7..881d78a 100644 --- a/README.markdown +++ b/README.markdown @@ -249,6 +249,8 @@ to the new branch: `git checkout (branch-name)` is used to switch branches. +`git checkout -b (new-branch-name)` can be used to create a new branch and switch to it in one command. + Let’s perform some commits now, $ echo 'some content' > test.txt