Getting started with GIT – Part 5
This is the 5th part of the getting started with GIT tutorial series. Here we will explorer some most important functions of GIT. This is a continuation from the last part "Getting started with GIT – Part 4 ". Lets see how to get old version of our project. First I am going to view all my commits using “ git log ” command. Currently my website looks like this. Now I am going add another main content area to my website. And commit those changes to the repository. And again, I am going to add another(fourth) main content are to my website and commit those changes. Now let’s check our git log. Now website looks like this. So, we assume we only need 3 main content blocks and we want to go back to the commit where we had only 3 main content blocks. We can achieve it by checkout the version with only 3 content areas. So, we can use command “ git checkout <commit number> -- <the file name> ”. So,...