Git is a version control system that tracks code changes and facilitates collaboration on code.
In this tutorial, we will demonstrate Git commands like this:
[user@localhost] $ |
git --version |
For new users, the terminal view might seem a bit daunting. Don’t worry! We’ll keep it simple, and learning this way will give you a solid understanding of how Git works.
In the code above, you can see both commands (input) and their output.
Commands we enter look like this:
[user@localhost] $ |
git –version |
Lines like this represent the output or response to our commands:
|
git version 2.30.2.windows.1 |
Generally, lines with a $ in front indicate input. These are the commands you can copy and run in your terminal.
Git and GitHub are not the same.
In this tutorial, you will learn what Git is and how to use it with remote repository platforms like GitHub.
You can select or switch the platform you’re focusing on by clicking the menu on the right: