JGit.add

JGit.add(files[, varargin])

Add files to the index.

Parameters:
  • files (char or cell-string) – Files or pathspecs to be added to the index.
  • varargin (comma-separated list of strings) – Parameter-value pairs of options and option arguments.
  • update (logical) – (Optional) Only stage tracked files. New files will not be staged.
  • gitDir (char) – (Optional) Add to index of the repository in specified folder.

See also

JGit, JGit.commit()

Examples

Add myfile.m to index.

JGit.add('myfile.m')

Add myclass.m and myfun.m.

JGit.add({'myclass.m','myfun.m'})

Table Of Contents

Previous topic

JGit

This Page