grgit - to add new files and remove deleted files
<p>we are using grgit to update files in github.</p>

<pre><code>def grgit = Grgit.open(dir: repoDir)
    grgit.add(patterns: ['src'], update: false) // False should even add new files
    grgit.commit(message: 'Updated subsets', amend: false)
    grgit.push()
</code></pre>

<p>we checkout from git and delete, add, modify files in a directory and commit and push directory back to github.</p>

<p>now while we do grgit.add and keep <strong>update:false</strong> it Add new files but doesn't remove deleted files.
and if we do <strong>update:true</strong>  it doesn't add the new files and only do changes to tracked files.</p>

<p>how to add and remove files together like git add -A in grgit. please help</p>