SWUFE Drupal home

Geting Setup on GIT and Github.com

06 November 2011 - Chengdu, China

As I wrote in a previous post, GIT is one of the most powerful version control systems today. It was originally created by and for Linux, but through sites like Github.com and several major open source projects moving to GIT, GIT version control is increasingly becoming one of the most used today.

I'd like to go over basic setup and basic GIT usage.

Getting Setup with GIT

Getting setup on GIT is relatively simple, but setup varies from system to system. Github.com has some great tutorials on getting setup on GIT and how to use Github.com for your version control:

I recommend following the above tutorials, but to repeat, there are basically only a few steps:

Set Up Your Info

It's recommended to configure your personal name, username and email with your GIT on your computer so all your commits are connected with who you are!

Go onto your command line tool, Terminal and run these commands: $ git config --global user.name "Firstname Lastname" $ git config --global user.email "your_email@youremail.com"

Make sure you use your name and your email with the above commands.

Beyond the Basics: What is GIT? What are the basic commands?

GIT is version control system for managing files over time with a group. Basically, every time you commit changes to your files, GIT takes a snapshot of your files. These files are tracked over time and you can see what's changed. Files and programs manageed with GIT are easy to be fork (split into different branches) in order for you to make stable, staging, testing and development work with your files. Read more: http://progit.org/book/ch1-3.html.

Basic Commands:

-Mark

blog comments powered by Disqus
Fork me on GitHub