git status
What is going on?.
Git status is the command you'll type more than any other. It tells you what's going on right now. Which files are new, which have changed, and what's ready to be saved. When in doubt, type git status.

- Your most used command
- Shows what is going on
- When in doubt, git status
An empty repository
In our new, empty repository, let's ask. Git status says we're on branch main. We'll learn about branches later. No commits yet, because we haven't saved anything. And nothing to commit.
git status On branch main No commits yet nothing to commit (create/copy files and use "git add" to track)
A new file appears
Now let's create a file. This echo command writes a heading into a new file called index dot HTML. Let's ask status again. Now Git has noticed the file. It's listed in red, under untracked files. Untracked means Git can see the file, but isn't saving its history yet.
echo "<h1>My Site</h1>" > index.html git status On branch main No commits yet Untracked files: (use "git add <file>..." to include in what will be committed) index.html nothing added to commit but untracked files present (use "git add" to track)
Summary
git status shows what's going on. An untracked file is one Git sees, but isn't saving yet. Next, how to tell Git to save it.
Key takeaways- git status, all the time
- No commits yet
- Untracked: seen, not saved