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
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()
I am not sure about the grgit.add cmd.