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

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

Squash all Commits into a Single Commit

Sometimes it makes sense to start over in Git's history while maintaining the current state of your code.

Dec 09, 2014

Free Alternatives to GitHub for Private Git Hosting

GitHub is super awesome, until you have to start paying for it. Check out two feature-full and FREE alternatives.

Jan 08, 2015