Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
Expand Down Expand Up @@ -487,7 +489,7 @@ I throughly recommend these resources to continue your Git practice:
- <a href="http://git-scm.com">http://git-scm.com</a> Official
website, with very useful help, book and videos
- <a href="http://gitref.org">http://gitref.org</a>
- <a href="http://www.kernel.org/pub/software/scm/git/docs/everyday.html">http://www.kernel.org/pub/software/scm/git/docs/everyday.html</a>
- <a href="https://www.kernel.org/pub/software/scm/git/docs/giteveryday.html">http://www.kernel.org/pub/software/scm/git/docs/everyday.html</a>

Author
------
Expand Down