gitconfigpull

Where is 'git config pull.rebase true' stored?


I wonder where git config pull.rebase true will store pull.rebase.

I have run this exact line when I am in a specific branch:

git config pull.rebase true

Then, I use git config -l to list all the entries in the local configuration file. However, I cannot see pull.rebase anywhere in it.

Is this variable stored somewhere else or with a different keyword?


Solution

  • The Git setting pull rebase is still stored in the local .git/config file. My configuration file is just too long that it does not show all. I have to press Enter (or space) to see more variables.

    One command I found useful was git config --show-origin --get <variable you want to find>. This command shows where Git finds your variable. Example:

    git config --show-origin --get pull.rebase
    

    Output:

    file:.git/config  false
    

    I used this for pull.rebase and confirmed with myself that it is indeed in .git/config.