Staging All Changes to Files

Download git eBook

Example

git add -A
2.0
git add .

In version 2.x, git add . will stage all changes to files in the current directory and all its subdirectories. However, in 1.x it will only stage new and modified files, not deleted files.

Use git add -A, or its equivalent command git add --all, to stage all changes to files in any version of git.

Stats

Contributors: 4
2016-09-11
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook