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

Collaborate On A GitHub Gist

GitHub gists are designed to be user-specific and not for team collaboration. But you can make it work with a little finagling.

Apr 25, 2018

Is GitHub the Best CMS?

It seems like a silly question, given that GitHub is not typically thought about as a CMS. But I analyze the question anyways, using a series of 11 factors.

Aug 30, 2022