Home > Back-end >  How to prevent git global config from changing automatically?
How to prevent git global config from changing automatically?

Time:07-17

My goal is to make the global git config name and email empty. I can do that, but after a while it gets reset to an old email I don't use anymore. I'm not sure why or how my /home/<user>/.gitconfig changes, but it does without my awareness.

I'm on Ubuntu 18.04, git 2.17.1.

Does anyone know how I can find what is changing my global config file and/or how I can prevent it from changing?

My global config settings if it's of any help (how I want it to be). Notice how the [user] group is empty:

[core]
        editor = nano
        pager = less -x1,5
[push]
        default = simple
[merge]
        tool = meld
[mergetool "meld"]
        path = /usr/bin/meld
[mergetool]
        prompt = false
[alias]
        adog2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar$
        adog = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)           
  • Related