Getting Started with Git
At first, Drupal ladder introduced a little Git introduction and the benefits of its usage. It was fascinating. I knew it would help me in the future. There were three links:
http://try.github.com/levels/1/challenges/1,
http://pcottle.github.com/learnGitBranching, and
http://git-scm.com/book. Both three were useful to understand Gits tree structure.
 |
Learning Git Branching |
Install Git
Coming to Git installation, I had to put some git commands into practice: git show, git log, git branch, git status among others. As it was something new to me, I took some time to grasp all the commands. Its installation was pretty easy; I only had to follow Drupal Ladder's steps.
 |
Installing Git |
 |
Configuring Git |
Write a patch
 |
Downloading a project using Git |
Before starting, I had to learn two of the prerequisites: getting used with the issue queue and Drupal sandbox. I had no problem hosting Drupal sandbox and creating an issue. Coming to the main step, I had to generate and submit a patch. Here are the proposed patch and screenshot. It was fantastic seeing how the patch made mention of what changed; minus sign for the initial version and plus sign for the new version of what has changed.
 |
Editing line 139 |
There was also a bonus part that I did not let go: rerolling the patch. I obtained the following
patch after rerolling. Here is my
issue.
Test patches
This model taught me how to check the patch. It also proved that my sandbox is working. This step was successful as the word 'type' changed to 'enter' as shown below. I found this step very simple to do.
 |
Before applying changes |
 |
After applying changes |
Reroll patches
In this step, I was asked to re-roll a patch to apply cleanly to the latest version of Drupal. In my case, the patch was applied cleanly. I then proceeded by removing the 'Needs reroll' issue tag.
 |
Issue chosen with Needs reroll tag |
 |
Re-rolling process |
 |
Removing Needs reroll issue tag |
So, what did I learn?
Before, I did not know such software like Git existed. It was a whole new world to me. After getting documented, I already knew it would help me in the future. Git could help me write my codes more efficiently. Git branch structure was interesting; let's say if my code does not work anymore, Git could get a previous code back and show me what changed. It would make me learn from my errors more quickly. I recommend anyone who wants to know more about Drupal to complete the Drupal Ladders available. For sure, I, myself am looking forward to complete the
site-building ladder
module contributor ladder in a near future! ☝
Comments
Post a comment