codepancake

your daily code for breakfast

Introduction to Git

At one point, if you’re getting more experienced with programming, you’ll be introduced to version control. And I think the most used form is Git. Git is a version control system that runs in command line interface.  You can work on the same (code)projects together at the same time, without interfering one another. And that’s *super* convenient. For example, in simple words: if you’re working on a project, you can ‘save’ your code and when you mess up and can’t seem to find what’s wrong, you can restore an older version of your code. This saves you a lot of time.

So to get you more familiar with this,  I wrote this post on Git. I’ll share resources about Git, online courses to learn Git and more…

Important side note: it takes some time to understand Git. In my opinion, Git is not really user-friendly and you have to use it frequently to get a better understanding of all the commands and terminology. Don’t let this discourage you!

Terminology

  • branch
  • clone
  • commit
  • fetch
  • fork
  • master
  • merge
  • pull request
  • push 
  • remote 
  • repository

These are some terms you have to get familiar with. Of course, I could explain all the terminology. But I think GitHub already did a great job, so no need for me to double this :) You can read about the terminology here.

Besides that, I’ve found this nice cheat sheet with all the Git commands you need. On the front, you can find all important commands. On the back, you can find our Version Control Best Practices that help you get the most out of version control with Git.

Online courses where you can learn Git:

  1. Codecademy – Learn Git
  2. Udacity – How to use Git and GitHub
  3. Codeschool – Try Git
  4. Team Treehouse – Git Basics
  5. Code School – Git Real

Online guides and other resources to learn Git:

  1. Roger Dudler – Git The Simple Guide
  2. Git Tower – Learn Version Control with Git
  3. GitHub Guides
  4. Atlassian Tutorials 

Other posts about Git:

  1. Github and the Magical Black Hole of Version Control
  2. Understanding Git for real

Enjoy coding!