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

Git Merge: Accept All Changes

Have you encountered a large merge when you know you are going to accept all current or incoming changes? There's a way to achieve without stepping through each file.

Sep 17, 2020

Learn Git in an Hour

Although I'm no expert, I've outlined the things I think you need to know to get started using Git.

Jul 04, 2013