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

Use git-lfs on File Already Committed

Using Git LFS on a file that is already being track without it requires an extra step.

May 20, 2021

Git: Set Default Branch to "main" on "init"

Tired of remembering to rename the master branch after running git init? This option will help you!

Mar 18, 2021