What git add . does
git add .: Stage every change for the next commit.
The git command page covers what it does in general, with an example.
gitadd.
git— command — track changes to your project and share themadd— subcommand — stage changes for the next commit.— the current folder: every change inside it
What it does when you run it
$ git add . $ git status On branch main Changes to be committed: new file: notes.txt new file: todo.md new file: a.txt new file: old.txt new file: names.txt new file: script.sh new file: log.txt new file: projects/web/index.html new file: projects/web/app.js new file: app.js new file: myfolder/keep.txt
Run it yourself
The same files. Nothing here can break, and nothing leaves your browser.
Where you use it
Explain other commands
Written by Mikhail Kuzmitskii