Ad space (banner)
🌿Git Lessons
Lesson 20 / 59

Setting Your Name with git config

This lesson covers initial setup — like your name — with git config. It's for anyone searching "git config usage."

git config handles a variety of settings for how Git behaves. There are a few items — like the name and email recorded on your commits — that you should always set up first.

In Try It, run git config user.name "Alice". From then on, "Alice" is recorded as the author on every subsequent commit.

A common early mistake is committing without setting this up first — an unintended name (like your computer's OS username) ends up recorded instead, so make sure to set this before you start working. In real teams, this initial setup is essential for accurately tracking who made which commit.

Git
Try it (type this into the pseudo terminal)
git config user.name "Alice"

🧑‍💻 You can type this command into the Git pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)