title: Adding changes from a local to remote branch in gradle
body: <p>I want to add files that are being edited from one branch to other. The repository is same. How can this be done using gradle grgit. Below is some code that I wrote </p>
  
  <pre><code>def grgit = org.ajoberstar.grgit.Grgit.open(dir: "source_dir")
      grgit.add(update: true, url:"dest_dir")
      grgit.commit(message: 'adding new files')
      grgit.push()
  </code></pre>
  
  <p>I am not sure about the grgit.add cmd. </p>