webmastertoolbag.com

Online tools Web school 在线工具 基础教程 菜鸟教程 编程学习 Web 学校
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING INTRO TO HTML & CSS BASH RUST TOOLS

Git Tutorial

Learn Git

Git is a free, open source tool that helps you save and manage different versions of your files and code.

With Git, you can work with others, keep track of changes, and undo mistakes.

Become Git Certified

Get certified with our Git exam, includes a professionally curated study kit to guide you from beginner to exam-ready.

Get Certified ❯
Certified Git Developer The candidate has passed the exam at the Professional level. Verify at verify.w3schools.com Stale Refsnes for w3schools.com -->

Where to use Git?

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.


Learning by Examples

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

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.


Tip for Beginners: 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.



What Changes When You Switch Platform?

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.


Why Practice with Exercises?

Practicing with exercises helps you remember the commands and understand how Git works.

Try the exercises and quiz to test your knowledge!


Git Quiz

Test your Git skills with a quiz.

Start Git Quiz


Track Your Progress

Create a Webmastertoolbag account and get access to more features and learning materials:

  • View your completed tutorials, exercises, and quizzes
  • Keep an eye on your progress and daily streaks
  • Join the leaderboard and compete with others
  • Get your own avatar and unlock new skins
  • Create your own personal website

Sign Up »

Note

This is an optional feature. You can study at Webmastertoolbag without creating an account.


×

Contact Sales

If you want to use Webmastertoolbag services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

FORUM ABOUT ACADEMY
Webmastertoolbag is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using Webmastertoolbag, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved. Webmastertoolbag is Powered by W3.CSS.

-->