🚀 How to Install Git Bash on Windows and Configure Your Identity Like a Pro

🔹 By Samuel Peter

🔹 Why Git Bash?

In today’s fast-paced DevOps and software engineering world, Git is an essential skill. Whether you’re a developer, DevOps engineer, or IT professional, understanding how to set up and use Git Bash on Windows is a must!

In this article, I'll walk you through installing Git Bash on Windows, configuring your identity, and verifying your setup. By the end, you’ll have a fully configured Git environment, just like mine! 💻🔥

Git Bash Configuration Screenshot


🔹 Step 1: Download Git for Windows

To install Git Bash on your Windows PC, follow these steps:

1️⃣ Go to the official Git website 👉 https://git-scm.com/downloads

2️⃣ Click Windows to download the latest Git version.

3️⃣ Once the .exe file is downloaded, open it to begin installation.


🔹 Step 2: Install Git Bash

1️⃣ Run the downloaded .exe file.

2️⃣ Click Next and choose the installation location (default is fine).

3️⃣ On the "Select Components" screen, check:

✅ Git Bash

✅ Git GUI

✅ Associate .sh files with Git Bash

4️⃣ Choose the default editor (VS Code is recommended).

5️⃣ Select "Use Git from the command line and also from 3rd-party software."

6️⃣ Click Next and install Git.

🚀 Done! Git Bash is now installed.


🔹 Step 3: Open Git Bash and Configure Your Identity

After installation, let’s configure Git with your name and email:

1️⃣ Open Git Bash (search for it in the Windows Start menu).

2️⃣ Run the following command to set your username:

git config --global user.name "Samuel Peter"

3️⃣ Set your email (use the one linked to your GitHub account):

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

4️⃣ Verify your configuration:

git config --list

Your Git identity is now set up! 🎉📂


🔹 Step 4: Create Your First Git Repository

Let’s test if Git is working by creating a sample repository:

1️⃣ Create a new folder and navigate to it in Git Bash:

mkdir my-first-git-repo  
cd my-first-git-repo

2️⃣ Initialize an empty Git repository:

git init

3️⃣ Create a sample file and add it to Git:

echo "Hello, Git!" > README.md  
git add README.md  
git commit -m "First commit"

Your Git repository is ready! 🌟🚀


🔹 Conclusion

Now you have Git Bash installed and configured on Windows! You’ve set up your identity, initialized a Git repository, and made your first commit. This is just the beginning of your Git journey! 🚀🎉

If you found this guide helpful, share it with your network! 💪 Drop a comment below if you have any questions.

Git #DevOps #VersionControl #GitBash #Windows #TechCareer #IT