Home

Git: List All Config Options

See all the options available to you, and also learn how to filter them.

Git has a plethora of configuration options. Most of the time you only need a few, typically when first setting up git on a new machine. (Related: New Mac Setup Guide)

To see all the configuration options available to you, you can use the reference manual on the website. Or, if you have an updated version of Git running locally, you can use the following command:

$ git help -c
note

If this command doesn't work for you, you likely have to upgrade Git. Here's a nice guide on how to do that on Mac.

Filtering the Results

Notice that there are a lot of options. If you'd like to filter the results, you can pipe to the grep command and search for some segment. For example, if I wanted to see all config options with "init" somewhere in the name, I could run the following command:

$ git help -c | grep init

That should return a much shorter list for you.

Let's Connect

Keep Reading

A Guide to Setting up a New Mac Developer Machine

It's time to tear into that shiny new Mac and write some code! Here's how I spend my first couple hours with a new machine.

Feb 16, 2021

Backup Your Code and Develop Cross-Platform Using Git

I recently discovered Git and it changed everything.

Feb 04, 2013

Backup Gitlab Data and Repositories to Amazon S3

Make sure you don't lose all that precious GitLab data by backing regularly and syncing with an Amazon S3 bucket.

Dec 11, 2014