git add file.txt

Category: Git - Core

git add file.txt

Stage a specific file for commit

Stages a specific file for the next commit. 'Staging' means marking it as ready to be saved (committed).
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.