bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
Learn/Git/Git Tutorial
Git•Git Tutorial

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.

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.

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.

Chapter

Back to Git Tutorial

Next

Git and GitHub Introduction

This chapter

Overview
17

Lessons

79m

Read time

1. Git Tutorial2. Git and GitHub Introduction3. Git Install4. Git Config5. Git Getting Started6. Git New Files7. Git Staging Environment8. Git Commit9. Git Tagging10. Git Stash11. Git History12. Git Help13. Git Branch14. Git Branch Merge15. Git Workflow16. Git Best Practices17. Git Glossary

On this page

Learn GitWhere to use Git?What Changes When You Switch Platform?