Link Search Menu Expand Document

gadd

Easily select the modified or untracked files from a list to stage them for the next commit.

Table of contents

  1. Demo
  2. Internals
  3. Implementation

Demo

Internals

git add <filepath>
add file contents to the index.

git add --intent-to-add <filepath>
An entry for the path is placed in the index with no content. This is useful for showing the contents of a new file with git diff

Implementation