title: Git: Clone from a branch other than master
body: <p>I am trying to pull from a repository in Github. But I don't want to clone the master branch. I want to clone some other branch. When I try <code>git clone &lt;url&gt;</code>, I get the files from the master branch. What should I do?</p>
  <p>Also, suppose the code is updated in the repository and I want to get the latest code, should I again use <code>git clone</code> ? Because the size of the project is huge. Also if I make changes to the project locally, and then I again use git clone, will the changes I made still be there? What if I don't want changes to be there?</p>
  <p>I am not even sure if <code>git clone</code> is the right command. <code>git pull</code> or <code>git fetch</code>?</p>
  <p>I am sorry, I am very new to git.</p>