Loading lesson path
[+: Git is a tool that helps you: save and manage different versions of your files and code. work with others, keep track of changes, and undo mistakes. 🏁
Git works on your computer, but you also use it with online services like GitHub, GitLab, or Bitbucket to share your work with others. These are called remote repositories. In this tutorial, you'll learn how to use Git for your own projects and how to connect with remote repositories online.
In this tutorial, we will show you Git commands like this:
Example git --version git version 2.30.2.windows.1 For new users, using the terminal view can seem a bit complicated. Don't worry! We will keep it really simple, and learning this way gives you a good grasp of how Git works. In the code above, you can see commands (input) and output. Lines like this are commands we input:
Example git --version
Formula
Lines like this are the output/response to our commands:Example git version 2.30.2.windows.1 In general, lines with $ in front of it is input. These are the commands you can copy and run in your terminal.
Don't worry about making mistakes! When you use Git on your own computer, you can't really break anything important. Experimenting is a great way to learn, and you can always undo or redo changes as you go.
The tutorial can show examples for GitHub, GitLab, or Bitbucket. The Git commands are mostly the same, but some steps (like connecting to a remote or pushing code) might look a little different depending on the platform you choose. Use the menu to see examples for each platform.
Practicing with exercises helps you remember the commands and understand how Git works. Try the exercises and quiz to test your knowledge!
Test your Git skills with a quiz.
This is an optional feature. You can study at W3Schools without creating an account. ❮ Home