Contribute Your Code on, Part 3: Git Configuration

How to Contribute Your Code on, Part 3 Git Configuration

Welcome to Part 3 of our series on contributing your code to In previous sections, we talked about the setting up the basics of your project.

{snippet drupalcontributionlinks}

In this article, we’ll get started with the Git setup. prefers users to submit projects via Git.

You might say that Git commits is the currency used on The Drupal community wants you to build up a record of commits. The more code you commit, the more trust and privileges you will enjoy on

Here’s how to get started with Git on

  • Go to your Account page.
  • Click the “Profile” tab.
  • Click the “Edit” tab in the submenu.
The Drupal account menu

  • In the submenu, go to the “Git access” tab:
The Git Access tab in your Drupal account

  • You must accept the “Git access agreement” in order to proceed:
The Git access agreement on

Now we need to setup Git. This will require you to use a command line terminal. In this tutorial, we assume you know about Git and using the command line. If you don’t, watch the “Introduction to the Command Line” class, plus the Git and Version Control classes.

In your terminal enter the following:

git config --global "your-username-@-drupal"
git config --global

or if you prefer not to give your email:

git config --global

We need to make some basic recommended Git changes. Below is a list of commands that sets colors. This will make files in different stages show up in different colors to differentiate them.

git config --global "your name"
git config --global color.status auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global color.diff auto
git config --global push.default tracking
git config --list

config –list, should show all the configuration options you have set. You can also run git status to check everything is working fine. I recommend you do this now as you will not be able to proceed if Git is not working.

Now if we go back to your Profile, Your Projects, you should see the Sandbox projects you have active. You will see below that we have made a Project called “Breeze a drupal 8 theme”:

Breeze Sandbox Preview


0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x