Re: gitconfig - interaction between credential.helper and includeIf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you! I have the configurations working now.

On Tue, Jun 25, 2024 at 6:20 AM Jeff King <peff@xxxxxxxx> wrote:
>
> On Mon, Jun 24, 2024 at 10:59:33PM -0700, Ryan Vu wrote:
>
> > I created the following files:
> >
> > ``` ~/workspace/.gitconfig-workspace
> > [credential]
> >     helper = store --file ~/workspace/.git-credentials-workspace
> > ```
> >
> > ``` ~/.gitconfig
> > [credential]
> >     helper = store
> > [includeIf "gitdir:~/workspace/"]
> >     path = ~/workspace/.gitconfig-workspace
> > ```
>
> credential.helper is a multi-valued config key that forms a list, and
> Git will try each one in sequence. So in your ~/workspace repositories,
> you've configured _two_ helpers: a vanilla "store" and one with the
> --file option.
>
> You can reset the list with an empty string. So putting:
>
>   [credential]
>   helper =
>   helper = store --file ~/workspace/.git-credentials-workspace
>
> in your .gitconfig-workspace would do what you want.
>
> -Peff





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux