Forrest logo
back to the git tool

git-var:tldr:1497f

git-var: [l]ist all Git logical variables.
$ git var -l
try on your machine

The command "git var -l" is used to list all the available variables in Git.

When you run this command in your Git repository, it will display a list of variables along with their values. These variables can be global, repository-specific, or user-specific.

Some of the variables that you might see in the list include:

  • Git's internal configuration variables.
  • Environment variables that are related to Git.
  • Configuration variables specific to your repository or user.

Listing the variables using "git var -l" can be useful when you want to check the current values of different Git configuration variables or when troubleshooting any issues related to Git configuration.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the git tool