title: how to find modified branch of a repo using Github Push event
body: <p>I am using GitHub repo web hook to get to my site pinged when new changes occurs. i dont know who to find which branch is modified. </p>
  
  <p>I referred github docs and in that</p>
  
  <p>The full Git ref that was pushed. Example: "refs/heads/master".</p>
  
  <p>i dont know if that is a correct way to find the modified branch</p>
  
  <p>if yes then will the path will be the same for all repo ?</p>
  
  <p>i get the below json <a href="http://pastebin.com/GaFQME7d" rel="nofollow noreferrer">http://pastebin.com/GaFQME7d</a></p>