Learning path · 2 lessons · 55 min

Git: never lose your work again

Git is how you stop losing work. It keeps every version of your files, lets you try ideas without fear, and is how the whole software world works together. Programmers use it every day, and so do sysadmins, for scripts, configs, and eventually whole servers described as code.

Is this path for you?

You'll be comfortable here if you can already:

That's all of it. Linux Basics is plenty, and you don't need to have finished Linux Sysadmin. You also don't need a GitHub account: everything happens in the practice terminal, and the lessons show how the same commands work with GitHub when you're ready.

What's ahead

LessonYou'll learn to…
Save points for your workmake a repository, commit changes, look back with log and diff, undo mistakes with restore, and keep secrets out with .gitignore
Branches, merges & sharingtry ideas on branches, merge them, calmly fix a merge conflict, and share with push, pull and clone, on your own server or GitHub

More Git lessons are planned: GitHub accounts and pull requests, tags and releases, and using git to track a server's /etc.

One rule before you start

Never commit passwords, keys or tokens. Git remembers everything, forever, and a public repository can be copied by anyone in seconds. You'll learn how to keep them out in the first lesson.