Quick Actions
git add
Description
Add file contents to the staging area.
Command
git add
Examples
Add all files
git add .
Add specific file
git add filename.txt
Interactive staging
git add -p
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
-A |
string | No | Add all changes |
-u |
string | No | Update tracked files |
-p |
string | No | Interactively choose hunks to stage |
--ignore-errors |
string | No | Continue even if some files cannot be added |
Command Info
Category:
Staging
Type:
Git
Views:
8
Status:
Active
Tags
staging
tracking
files