Skip to main content

Introduction to Git

This course is an introduction to version control with Git for data scientists.

Start Course for Free
4 Hours46 Exercises116,588 Learners3650 XP

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

Version control is one of the power tools of programming. It allows you to keep track of what you did when, undo any changes you decide you don't want, and collaborate at scale with other people. This course will introduce you to Git, a modern version control tool that is very popular with data scientists and software developers, and show you how to use it to get more done in less time and with less pain.

  1. 1

    Basic workflow


    This chapter explains what version control is and why you should use it, and introduces the most common steps in a common Git workflow.

    Play Chapter Now
    What is version control?
    50 xp
    Where does Git store information?
    50 xp
    How can I check the state of a repository?
    50 xp
    How can I tell what I have changed?
    100 xp
    What is in a diff?
    50 xp
    What's the first step in saving changes?
    100 xp
    How can I tell what's going to be committed?
    100 xp
    Interlude: how can I edit a file?
    100 xp
    How do I commit changes?
    100 xp
    How can I view a repository's history?
    50 xp
    How can I view a specific file's history?
    50 xp
    How do I write a better log message
    100 xp


filipschFilip Schouwenaars
DataCamp Content Creator Headshot

DataCamp Content Creator

Course Instructor

DataCamp offers interactive R, Python, Spreadsheets, SQL and shell courses. All on topics in data science, statistics, and machine learning. Learn from a team of expert teachers in the comfort of your browser with video lessons and fun coding challenges and projects.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA