From: Lidong Yan Date: Tue, 15 Jul 2025 04:09:21 GMT Subject: Re: [BUG] git pull ignores pull.autostash=true configuration when used with --git-dir and --work-tree flags on a bare repository Message-ID: In-Reply-To: <010001980c1ee007-2797fc86-fdf3-46e9-bec9-f8da2c9ebb8d-000000@email.amazonses.com> Bryan Lee wrote: > > 3. Set global Git configuration for automatic rebasing and stashing: > $ git config --global pull.rebase true > $ git config --global pull.autostash true > > Verify the configuration is set: > $ git config --global pull.rebase > true > $ git config --global pull.autostash > true Maybe you can try `git config rebase.autostash true` instead. > The difference is that Git is not honoring the pull.autostash=true > configuration when the repository is accessed using --git-dir and > --work-tree flags. The autostash feature is completely ignored, and > Git behaves as if pull.autostash=false. I’m not sure why this difference happens either. - Lidong