Git Version Control


Ever tried collaborating over any WordFile? Any ppt? Wasn't it absolute torture until google docs came along? *Bless Google*

What about code? Make some changes. Send the file via email. Wait until the other person makes some changes, because if you write anything, it's gonna get messed up for both of you. Receive the file. Edit again.


And what if many people collaborate?

Why use git at all?

Well, git is a super-fast and super-efficient tool for programmers to make sure that whatever happened above NEVER HAPPENS. In programmer-speak, it’s called “version control”. In human-speak, it’s something I can use to work on a project and share it with lots of people. At all times, everybody knows what version everything is and what changes anyone made at anytime. Much like Google Docs, but with a much more comprehensive revision history also allowing you to work offline!

So move to the next section to complete installing this cool tool and explore even cooler things!

Let's Begin

This time around there isn't much to be done, so let's get started straight with the installation!
But first! Make sure that you sign up on Github and create your profile, if you don't have one already!
Once you're done with this, go right ahead!


For you guys, it’s just one simple command:

sudo apt-get install git

use git config --global "< user_name >", to set your username

git config --global "< email_id >", to set your email

Great! You're all set, now all that remains is for you to show up!


Follow these very easy steps.
Make a bootable drive, use that to install ubuntu on your system, remove windows to get a stress free life :D

Just follow the steps given below and we'll have your system ready in no time at all!

  • Go to this link
  • Install the downloaded software.
    (Optional) If you want to use git with powershell and cmd, you can leave the “Use Git Bash only” option. This will add it to your PATH environment.
  • Open Git bash and you're all set !!

Great! You made it, you're all ready to "Git", Set, GO!

Ah! Tiny little steps for you is all. Take a look at the steps below:

  • Download dmg from here
  • Install it (Refer to this). Do install the command line tools.

Awesome! You're good to go!


So for all newbies out there, there are some teeny tiny commands given below.


git help Gives information about the specified command (Man page)

git clone Clone an existing repository as a newly created directory on your local machine directory

git init Initializes a repository

git status To check what has changed since the last commit

git add Adds specified untracked files

git commit To store the tracked files with a message describing its function

git log Gives the history of changes made

git fetch Fetches branches, along with objects to complete history

git merge Putting commits from different branches together

git pull Combination of git fetch and git merge

git push Pushes commit’s onto the server

If none of these commands make sense to you, that's okay, we'll iterate over them again during the hackeve.

Come at 5.00 pm in C01 before the hackeve if you are facing any issues with the installation or if you'd just like to have a chat.

Otherwise, let's see you at 6.00 pm tomorrow. Don't be late. We've got some chocolates and games for you too ;)

Edit: The resources for the talk can be found here.