title: What's the difference between branching and committing?
body: <p>I'm beginning with the basics of GitHub, because I have to work as a programmer and others have told me about creating/cloning a directory in NetBeans and committing /branching a project; but I don't totally understand the difference between commit and branch. Like you can see here:</p>
  
  <p><a href="https://guides.github.com/activities/hello-world/" rel="nofollow noreferrer">https://guides.github.com/activities/hello-world/</a></p>
  
  <blockquote>
    <p>By default your repository has one branch named master which is considered to be the definitive branch. We use branches to experiment and make edits before committing them to master.</p>
    
    <p>When you create a branch off the master branch, you’re making a copy, or snapshot, of master as it was at that point in time. If someone else made changes to the master branch while you were working on your branch, you could pull in those updates.</p>
  </blockquote>
  
  <p>I understand that I have a branch named <code>master</code> that is the definitive branch and other branches that I can create in NetBeans clicking in my project of NetBeans. I know how to do this in NetBeans, but I don't understand the difference between branching and committing.</p>
  
  <p>I can use branch to do some experiments or changes in my code to see the results before merging my project with the master. Maybe I am working with some changes in my code, but I can't get what I want to get, this is the best moment to do some tests to see the results while doing branching.</p>
  
  <p>And I'm unable to understand this:</p>
  
  <p><strong>"If someone else made changes to the <code>master</code> branch while you were working on your branch, you could pull in those updates."</strong></p>
  
  <p>I can't read a book about Git, because I don't have time to do it, but I have some problems with Git (GitHub).</p>
  
  <p>My teacher explained me in the job that you have to do branching before committing.</p>