Git

git add

SafeStage changes

git add <path>

Adds changes to the next commit; -A stages everything.

Examples

  • git add -AStage all changes

Syntax

git add <path> | git add -A

Before you run it

Staging only.

Used when you see

Merge conflict
3
Stage the resolved files
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store