What is $(prefix) on $(prefix)/etc/gitconfig?
Asked Answered
W

1

17

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?

Wrack answered 31/10, 2013 at 18:2 Comment(0)
H
15

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

More information can be found in the INSTALL file in the git repository.

Hispaniola answered 31/10, 2013 at 18:4 Comment(4)
Can you please elaborate? … What do you mean by “git was compiled”? Do you mean installed? How is the variable that “git was compiled with” specified? How does one see the value of this variable? How does one change it?Designate
you supply it to the configure script before compiling git.Hispaniola
@Famaref Can you explain it like I have no idea what you’re talking about? Please edit your answer with more details. It’s worth an upvote.Designate
have a look in the git repository in the INSTALL file. Details the build process.Hispaniola

© 2022 - 2024 — McMap. All rights reserved.