Introduction to Git Bash

Introduction to Git Bash

Learn how to install Git Bash.

ยท

2 min read

Introduction

Git Bash is a popular version control system (VCS). A VCS is a software designed to record changes within one or more files over time. Git Bash also allows users to undo - or even cancel - the made or pending changes in one or more files.

You might be wondering, what does this mean? Why does this matter to me?

Well, by using a VCS (in this case, Git Bash), you can track your projects.

Say you were working on a webpage, and you deleted the main contents of the page. You would then lose the main file in your project, as well as hours of work. ๐Ÿ˜จ

But, if you used Git Bash to track these files - and changes made to said files - you could revert the changes. I'll talk about this in a future article. ๐Ÿคฉ

Additionally, Git Bash has powerful features, such as: - arithmetic - array variables - loops - branches

NOTE: You might want to be at a computer or laptop (to get the full experience).

Installing Git Bash

The first (and most important) thing to do is download Git Bash.

You can set up Git Bash on your local machine (aka laptop or computer) using this MakeUseOf article.

To check what version of Git Bash you have, type the following into your Command Prompt:

git --version

It should come up with something like this: git version 2.35.1.windows.2.

NOTE: It might not be this exact output, though it should still start with git version.

If it doesn't, you may need to check your work. Go back to the link and do so - then try again.

Once that's all cleared up, give yourself some praise! You've successfully downloaded Git Bash, and you're ready to start your journey.

Conclusion

This is the 1st part of a 10 part series to teach Windows users about Git Bash. This series includes:

  • how to navigate your file system

  • how to change your file system

  • how to set up Git and GitHub

  • how to connect Git and GitHub

  • how to keep up good practices in Git

  • how to backtrack in Git

  • how to branch in Git

  • ...and more!!

Stay tuned for more - a new part will come out every Tuesday! ๐Ÿ˜Š

ย