git add .

Stage all changes in the current directory

This command adds new files, updates modified files, and removes deleted files from the working tree.

It is useful when you want to stage all changes quickly without individually selecting each file. Some potential variations include using the --all flag instead of the . shorthand, which includes all changes in the entire repository, including changes in subdirectories. Another variation is using the --patch flag, which allows you to interactively select changes to stage.

Sign in to enable bookmarking, reminders, progress-tracking and more...