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)%aD%C($
        co = checkout
        s = status
        u = reset HEAD --
        last = log -1 HEAD
        st = status
        unstage = reset
[user]
This is how it becomes after a while (the name and email values are not real in this example):
[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)%aD%C($
        co = checkout
        s = status
        u = reset HEAD --
        last = log -1 HEAD
        st = status
        unstage = reset
[user]
        name = Some Fake Name
        email = some@fake.email
And before anyone asks, I remove my global git config name and email so that when I clone new repos git asks explicitly for a user and email for that repo. This helps me to manage work and personal git accounts.
 
     
    