Add

Add file contents to the index

jgit add [-u|--update] [<pathspec>...]

Reference: git-add

Examples

Stage files to git repo.

jgit add file1 file2 file3

Using class JGit.add method.

JGit.add({'file1','file2,'file3'})

Table Of Contents

Previous topic

Usage

Next topic

Branch

This Page