DEV Community

PETER Samuel
PETER Samuel

Posted on

1

### πŸš€ How to Install Git Bash on Windows and Configure Your Identity Like a Pro πŸ”Ή *By Samuel Peter*

πŸš€ 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"  
Enter fullscreen mode Exit fullscreen mode

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

git config --global user.email "samuelpeterchinonso@gmail.com"  
Enter fullscreen mode Exit fullscreen mode

4️⃣ Verify your configuration:

git config --list  
Enter fullscreen mode Exit fullscreen mode

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  
Enter fullscreen mode Exit fullscreen mode

2️⃣ Initialize an empty Git repository:

git init  
Enter fullscreen mode Exit fullscreen mode

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

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

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

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (1)

Collapse
 
peter_samuel_052b9056e236 profile image
PETER Samuel β€’

awesome

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free β†’

πŸ‘‹ Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay