title: Using `git checkout -b` with and without a branch starting point
body: <p>I am new to Git, I want to know the difference between two commands.</p>
  
  <pre><code>`git checkout -b &lt;branch-name&gt;`
  `git checkout -b &lt;branch-name&gt; origin/master`
  </code></pre>
  
  <p>If I execute the first command, how does Git create the branch? Will the branch be created from local master or remote master? </p>