WEEK 7 · LESSON 3 · TOPIC 6 OF 8 · Decision Logic

Decision Logic

Lesson progress

0% Complete

SECTION 1 OF 1

In this topic · 1 sections
  1. Overview

Overview

Use git add --all or git add -A when every detected project change belongs in the next commit.

Use git add . when you intentionally want the current directory and its descendants.

Use an exact file path when you want precise control.

Use a pattern such as *.txt only when its current-directory scope matches your intent.

After any broad staging operation, use git status as the verification step rather than assuming the selection is correct.