title: git: How to view commits to a single branch
body: <p>A colleague created a local branch ('branchA') from master, did some work, pushed it, merged in master, did some more work and pushed it again. Concurrently, other colleagues have been working on other branches and merging them to master.</p>
  
  <p>Now I need to pull branchA to review it. So I've done a <code>git pull</code> and <code>git checkout -b branchA origin/branchA</code> which is fine. But all of the commands (git diff/log/show) show commits made across all branches in the repo.</p>
  
  <p>How can I view a diff of all of the commits made to branchA against the version of master that it was created from?</p>
  
  <p>Also how can I <code>git diff</code> branchA against the current HEAD of master, but only view files changed within branchA?</p>