A
A
Alexis178422015-08-16 12:30:15
git
Alexis17842, 2015-08-16 12:30:15

How to find the system and global git configuration files if they are not in the standard places for Ubuntu?

Good day!
I'm on Ubuntu 14.04 .
I'm trying to find the git configs in the places that the instruction says about .
Everything is fine with the local config in the project.
At the same time, I cannot find either the system config (File /etc/gitconfig) or the global one (File in the home directory ~/.gitconfig). The usual search by file name (gitconfig) does not give anything either.
The
git config --global --list command
in the console, which is characteristic, works and correctly displays the settings for user.name and user.email
The
git config --system --list command
produces the result
fatal: unable to read config file '/etc/ gitconfig': No such file or directory
That is, at least the global configuration file is somewhere, but where?
How else can you try to find it?
And where can be (if at all) the system config?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nonlux, 2015-08-16
@Alexis17842

183614956 +1
File ~/.gitconfig you have just hidden
PS By your link
This does not mean that git creates them during installation.
This means you can create them))
sudo touch /etc/gitconfig

I
index0h, 2015-08-16
@index0h

locate gitconfig

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question