What is $(prefix) on $(prefix)/etc/gitconfig?

2020-04-02 06:45发布

问题:

gitconfig(1):

If not set explicitly with --file, there are four files where git config will search for configuration options:

...

$(prefix)/etc/gitconfig

    System-wide configuration file.

What is $(prefix) on $(prefix)/etc/gitconfig?

回答1:

The prefix environment variable git was compiled with. Usually, it's empty, so the path is /etc/gitconfig.