Getting Started with Git
Git is a powerful tool for programmers which enables the large scale projects we create today. In summary, git allows an arbitrary number of programmers to view and contribute to a single codebase in an effective parallel fashion.
The installation and usage of git can vary slightly depending on what platform you are working on. This tutorial attempts to cover these differences as best as possible. For now, let's begin with the installation of git:
- GitHub has created a website specifically aimed at bringing git to the Windows platform. Unlike Mac and the Linux flavors, the easiest way to install git is by vising GitHub's gitforwindows and downloading the provided .exe file.
- Installing git onto a Mac is very straightforward. Simply open terminal and query git for it's current version using
git --version. If git is not installed, it will ask if you'd like to install it.
- Debian based distributions of Linux can have git installed using
sudo apt install git-all
- RPM-based distributions of Linux like Fedora, RHEL, and CentOS will instead use
sudo dnf install git-all
After git has been installed on your system, Mac and Linux users can use the terminal to execute the other commands which are in this tutorial. Windows users should open a program called Git Bash; this will open a bash terminal in which you will be able to use the commands we discuss in this walkthough as well as many other basic bash commands (ls, cd, and others).