git-stage - Man Page
Add file contents to the staging area
Examples (TL;DR)
- Add a file to the index:
git stage path/to/file
- Add all files (tracked and untracked):
git stage -A
- Only add already tracked files:
git stage -u
- Also add ignored files:
git stage -f
- Interactively stage parts of files:
git stage -p
- Interactively stage parts of a given file:
git stage -p path/to/file
- Interactively stage a file:
git stage -i
Synopsis
git stage <arg>...
Description
This is a synonym for git-add(1). Please refer to the documentation of that command.
Git
Part of the git(1) suite
Info
06/01/2023 Git 2.41.0 Git Manual