Fundamentals 3 min read

How to Configure Git: Set Username, Email, Generate SSH Key, and Resolve Common Issues

This guide walks you through configuring Git with a username and email, generating and adding an SSH key to GitHub, and troubleshooting common errors such as the Fatal HttpRequestException by installing the Git Credential Manager for Windows.

Wukong Talks Architecture
Wukong Talks Architecture
Wukong Talks Architecture
How to Configure Git: Set Username, Email, Generate SSH Key, and Resolve Common Issues

PassJava online documentation provides a step‑by‑step tutorial for configuring Git.

1. Configure Git username and email

git config --global user.name "jackson0714"
git config --global user.email "[email protected]"

2. Generate SSH key

ssh-keygen -t rsa -b 4096 -C "[email protected]"

An image illustrates the key generation process.

3. Add SSH key to GitHub

Open the public key file (e.g., C:\Users\Administrator\.ssh\id_rsa.pub ) and copy its contents.

Visit https://github.com/settings/ssh/new and paste the copied key.

Save the SSH key on GitHub.

Images show the GitHub SSH key addition steps.

4. Common issues

If you encounter a Fatal: HttpRequestException error, download and install Git Credential Manager for Windows v1.20 from GitHub releases page to resolve the problem.

Additional promotional images and QR codes are included in the original document.

gittutorialVersion ControlSSHSetup
Wukong Talks Architecture
Written by

Wukong Talks Architecture

Explaining distributed systems and architecture through stories. Author of the "JVM Performance Tuning in Practice" column, open-source author of "Spring Cloud in Practice PassJava", and independently developed a PMP practice quiz mini-program.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.