The Basics of Git

David Landup
François Dupire

Now that we've installed git and configured some of the basic options - we can learn how to use it. We've briefly gone over the creation of a repository in the last lesson, as well as creating a file, adding it to the staging area and committing the change. To understand what was going on under the hood, we'll need to navigate through the concepts of the repository, index, staging area and commits, also mentioned briefly in Lesson 2.

Armed with those, we'll already have a working knowledge of Git, and thus will be able to use it to keep track of changes made in small projects.

Demo Project

To help us out with visualizing what's going on, we'll make use of a small demo project. We're going to implement a simple Calculator class in Java, and use this project throughout the course.

Don't fear if you don't know a single thing about programming in Java, this will be kept quite simple, only to serve as a support for the course, and to visualize the changes. You can supplement the course with any language and any project you're working on - be it a new one or an existing project you'd like to start performing version control on.

Start course to continue
Lessson 4/10
You must first start the course before tracking progress.
Mark completed

© 2013-2024 Stack Abuse. All rights reserved.