sde-cheatsheet

git add - Command

Track and Stage Files

# Command 1: Track and stage all files in the current directory.
git add .

# Command 2: Track and stage a specific file.
git add [file_name]

# Example 2
git add main.py

Track but not Stage Files

# Command 1: Track all files in the current directory.
git add -N .

# Command 2: Track a specific file.
git add -N [file_name]

# Example 2
git add -N main.py