Re: [BUG] git pull ignores pull.autostash=true configuration when used with --git-dir and --work-tree flags on a bare repository
Bryan Lee <hi@looping.me> wrote:
Show 10 quoted lines
>
> 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