Locked lesson.
About this lesson
In this lesson, we will learn how to set up version control with Git.
Exercise files
Download this lesson’s related exercise files.
Git Version Control.docx57.5 KB Git Version Control - Solution.docx
58.4 KB
Quick reference
Git Version Control
Version control allows you to save versions of your code over time.
When to use
You should set up version control at the beginning of every new project you create.
Instructions
To set up Git version control, type these five commands into the terminal (one at a time):
$ git config --global user.name "Your Name"
$ git config --global user.email "you@youraddress.com"
$ git config --global push.default matching
$ git config --global alias.co checkout
$ git init
Hints & tips
- Version control allows you to save your code over time.
- Set it up at the beginning of every project you create.
Lesson notes are only available for subscribers.