title: Retrieving Branches from GIT url using java code
body: <p>Currently I'm working on Jgit API to create a branch from source code. I have created the branch successfully and when I create branch I need to validate the branch name shouldn't exists in the current GIT repositary(Online URL : Ex.<a href="https://github.com/varunkumar-s/test.git" rel="nofollow">https://github.com/varunkumar-s/test.git</a>). </p>
  
  <p>Here I want to do list out the branch names from the above url rather from the local git repository. So how can i do this?? I want to have a output of list of branches when I'm giving with the git repository. </p>