Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Is there a command I can run to get the path of global gitconfig for a user? Like git config --global --edit, but I want the path, not an editor window. I want the right path whether or not this f...
Question
git
#2: Post edited
Is there a command I can run to get the path of global `gitconfig` for a system? Like `git config --global --edit`, but I want the path, not an editor window.- I want the right path whether or not this file already exists. i.e. I want the path that Git will use, even if this is a brand new system. This may pose problems for `git config --list --show-origin --show-scope`.
- I can't figure out how to disable the hint in the command below, but that would work great.
- ```sh
- git -c 'core.editor=echo' config --global --edit
- ```
- Is there a command I can run to get the path of global `gitconfig` for a user? Like `git config --global --edit`, but I want the path, not an editor window.
- I want the right path whether or not this file already exists. i.e. I want the path that Git will use, even if this is a brand new system. This may pose problems for `git config --list --show-origin --show-scope`.
- I can't figure out how to disable the hint in the command below, but that would work great.
- ```sh
- git -c 'core.editor=echo' config --global --edit
- ```
#1: Initial revision
Get global gitconfig path
Is there a command I can run to get the path of global `gitconfig` for a system? Like `git config --global --edit`, but I want the path, not an editor window. I want the right path whether or not this file already exists. i.e. I want the path that Git will use, even if this is a brand new system. This may pose problems for `git config --list --show-origin --show-scope`. I can't figure out how to disable the hint in the command below, but that would work great. ```sh git -c 'core.editor=echo' config --global --edit ```