Loved by learners at thousands of companies
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.
This chapter explains what version control is and why you should use it, and introduces the most common steps in a common Git workflow.What is version control?50 xpWhere does Git store information?50 xpHow can I check the state of a repository?50 xpHow can I tell what I have changed?100 xpWhat is in a diff?50 xpWhat's the first step in saving changes?100 xpHow can I tell what's going to be committed?100 xpInterlude: how can I edit a file?100 xpHow do I commit changes?100 xpHow can I view a repository's history?50 xpHow can I view a specific file's history?50 xpHow do I write a better log message100 xp
This chapter digs a little deeper into how Git stores information and how you can explore a repository's history.How does Git store information?50 xpWhat is a hash?50 xpHow can I view a specific commit?50 xpWhat is Git's equivalent of a relative path?50 xpHow can I see who changed what in a file?50 xpHow can I see what changed between two commits?50 xpHow do I add new files?100 xpHow do I tell Git to ignore certain files?50 xpHow can I remove unwanted files?100 xpHow can I see how Git is configured?50 xpHow can I change my Git configuration?100 xp
Since Git saves all the changes you've made to your files, you can use it to undo those changes. This chapter shows you several ways to do that.
Working with branches
Branching is one of Git's most powerful features, since it allows you to work on several things at once. This chapter shows you how to create and manage branches.What is a branch?50 xpHow can I see what branches my repository has?50 xpHow can I view the differences between branches?50 xpHow can I switch from one branch to another?100 xpHow can I create a branch?100 xpHow can I merge two branches?100 xpWhat are conflicts?50 xpHow can I merge two branches with conflicts?100 xp
This chapter showcases how Git allows you to share changes between repositories to collaborate at scale.How can I create a brand new repository?100 xpHow can I turn an existing project into a Git repository?100 xpHow can I create a copy of an existing repository?100 xpHow can I find out where a cloned repository originated?50 xpHow can I define remotes?100 xpHow can I pull in changes from a remote repository?100 xpWhat happens if I try to pull when I have unsaved changes?100 xpHow can I push my changes to a remote repository?100 xpWhat happens if my push conflicts with someone else's work?100 xp
DataCamp Content Creator
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.