git-stage

Add file contents to the staging area

TLDR

Add a file to the index

$ git stage [path/to/file]
copy


Add all files (tracked and untracked)
$ git stage -A
copy


Only add already tracked files
$ git stage -u
copy


Also add ignored files
$ git stage -f
copy


Interactively stage parts of files
$ git stage -p
copy


Interactively stage parts of a given file
$ git stage -p [path/to/file]
copy


Interactively stage a file
$ git stage -i
copy

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

Copied to clipboard