Skip to main content
March 23, 2026/2 min read

Git Setup: Your Name & Email

Essential Git Configuration for Professional Development Workflows

Prerequisites Required

This guide assumes you have Git already installed on your system. If you haven't installed Git yet, download it from the official Git website before proceeding with configuration.

Platform-Specific Access Methods

Mac Terminal Access

Navigate to Applications, then Utilities folder to launch Terminal.app. This provides direct access to the command line interface on macOS systems.

Windows Command Options

Choose between Windows Command Prompt for familiar users or Git Bash for enhanced Git functionality. Git Bash provides a Unix-like terminal experience on Windows.

Tell Git Your Name & Email

Before you can start tracking changes and collaborating on projects, Git needs to know who you are. This identity information gets embedded in every commit you make, creating a permanent record of your contributions. Here's how to configure your credentials across different platforms:

  • Mac: Navigate to Applications > Utilities and launch Terminal.app. You can also press Cmd + Space and search for "Terminal" for quicker access.
  • Windows: If you're comfortable with the traditional Windows Command Prompt, you can use that. However, we recommend launching Git Bash, which provides a more Unix-like environment and better Git integration. Look for it on your Desktop or in the Windows Start menu (often located within a Git folder).

2. Configure your name by entering the following command, replacing Your Name with your actual first and last name (maintain the quotes to handle names with spaces):

git config --global user.name "Your Name"

3. Set your email address with this command, replacing you@example.com with your actual email address (keep the quotes for consistency):

git config --global user.email "you@example.com"

Important note: These configuration changes only affect future commits. Any existing commits will retain their original author information, which helps maintain the integrity of your project's history.

Git Configuration Process

1

Launch Command Line Interface

Open Terminal on Mac or Git Bash/Command Prompt on Windows to access the command line environment where Git commands are executed.

2

Set Global Username

Execute the git config --global user.name command with your actual name in quotes to establish your identity for all Git repositories on your system.

3

Configure Email Address

Run the git config --global user.email command with your email address in quotes to link your commits to your email identity.

Configuration Scope Impact

Remember that name and email changes only affect future commits and work. Previously committed work will retain the old configuration settings.

git config --global user.name "Your Name"
The exact command syntax for setting your Git username globally across all repositories on your system.

Checking Your Git Setup (Name & Email)

Once you've configured Git, it's good practice to verify your settings are correct. You can retrieve your current configuration by running the same commands without specifying new values:

git config --global user.name

git config --global user.email

These commands will display your currently configured name and email, allowing you to confirm everything is set up properly before you start committing code. If you need to work on different projects with different identities, you can also set repository-specific configurations by omitting the --global flag when inside a specific project directory.

Setting vs Checking Commands

FeatureSetting ConfigurationChecking Configuration
Username Commandgit config --global user.name "Your Name"git config --global user.name
Email Commandgit config --global user.email "you@example.com"git config --global user.email
PurposeSets new valueDisplays current value
Recommended: Use checking commands to verify your configuration is correct before starting new projects.

Configuration Verification Steps

0/3

Go Beyond Git

Mastering Git is just the beginning of your development journey. As version control becomes second nature, you'll want to expand your technical skills to stay competitive in today's evolving tech landscape. Our comprehensive training programs combine Git proficiency with in-demand programming skills:

Available Learning Paths

Web Development Classes

Comprehensive courses covering modern web development technologies and practices. Located in NYC with hands-on project experience.

Python Programming Classes

Learn Python fundamentals and advanced concepts through structured bootcamps. Perfect for beginners and experienced developers expanding their skillset.

Data Science Training

Master data analysis, machine learning, and statistical methods through practical projects. Industry-focused curriculum with real-world applications.

Web Design Courses

Develop skills in user interface design, user experience principles, and modern design tools. Create portfolio-worthy projects during the program.

Foundation for Collaboration

Proper Git configuration is your first step toward effective collaboration with other developers. With your identity configured, you're ready to contribute to team projects and open source repositories.

Key Takeaways

1Git configuration requires setting both user name and email address globally using command line interface
2Mac users access Terminal through Applications > Utilities while Windows users can choose Command Prompt or Git Bash
3The git config --global user.name and user.email commands establish your identity for all future commits
4Configuration changes only affect future work and do not modify previously committed code history
5Verification commands omit the quoted values to display current configuration settings
6Proper Git setup is essential for professional collaboration and version control workflows
7Additional programming education opportunities are available through specialized bootcamps and classes
8Git serves as a foundation skill for web development, data science, and software engineering careers

RELATED ARTICLES