title: Clone PR using java program or JGIT
body: <p>I wanted to clone a specific pull request using java JGit API. Does anyone have an idea about it? Or any alternate way to clone Pull request using java program.</p>
  
  <p>Let's consider below is the code to checkout or clone PR from GitHub,</p>
  
  <pre><code>1: git clone https://github.com/deepak-kumbhar/spring-boot-logging-example.git
  2. cd PROJECT_NAME
  3. git fetch origin pull/1/head:pr-1 (Where 1 is number or PR)
  4. git checkout pr-1 (To activate the PR)
  </code></pre>
  
  <p>The same functionality I want using JGit. Does anyone have an idea about it? </p>
  
  <p>Thanks in advance!</p>