Using Git on the Command Line

Learn how to use the Git tool (the version-control system for tracking changes in any set of files) directly on your computer's command line interface.

Get Started


Git and GitHub


57 minutes


Pushing our files to the remote server

See how to use git push to push commits made on your local branch to a remote repository.

4 min

Installing Git on your machine

See the steps on how to install the Git tool onto your personal machine from the CLI and access it for future use.

7 min

Understanding the 3 Git States

Find out the background and uses of the three Git States of modified, staged, and committed.

4 min

Excluding unwanted files with Gitignore

Learn how to avoid having to ignore unwanted files manually, using .gitignore file in the working directory of your project.

6 min

Understanding commit details with Git Log and Git Show

Understand how to use and evaluate Git Log and Git Show, tools that will let you inspect commit history and changes.

6 min

Introduction to the Command Line

Get an overview of the command line interface or CLI, which is a way your OS represents the computer's files, directories, and programs to the user.

8 min

Making your first commit

Learn how to make your first GitHub commit, accompanied with writing a certain message to track your changes.

7 min

Pulling commits from master

Learn how by running git checkout master, you'll be able to find the commits you want to pull into your branch.

6 min

How to reverse a commit

Some mistakes or actions need to be taken back. Learn how to easily reverse a commit with GitHub specific commands while preserving previous changes to your files.

12 min