You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like {gert} prioritizes config items from top to bottom, but command line git prioritizes bottom to top in the case of duplicate keys.
I have a situation where I want to use a different set of credentials for a project. I found the IncludeIf directive for .gitconfig files from https://nicknisi.com/posts/git-includeif/ and I applied it like so:
and in my ~/.gitconfig-pat I have it set up to use the GitHub credentials for "Bizarro" in which I provision a temporary PAT inside of an environmental variable called BIZARRO_TOKEN a la https://git-scm.com/docs/gitfaq#http-credentials-environment
When I run git from /path/to/project in the command line, I can commit, push, and pull as "Bizarro", but if I open R and run {gert} from the same directory, I am recognized as "Clark".
If I move the IncludeIf statement to the top of the file, then {gert} will recognize "Bizarro", but git will recognise "Clark"
The text was updated successfully, but these errors were encountered:
It looks like {gert} prioritizes config items from top to bottom, but command line git prioritizes bottom to top in the case of duplicate keys.
I have a situation where I want to use a different set of credentials for a project. I found the
IncludeIf
directive for.gitconfig
files from https://nicknisi.com/posts/git-includeif/ and I applied it like so:and in my
~/.gitconfig-pat
I have it set up to use the GitHub credentials for "Bizarro" in which I provision a temporary PAT inside of an environmental variable calledBIZARRO_TOKEN
a la https://git-scm.com/docs/gitfaq#http-credentials-environmentWhen I run git from
/path/to/project
in the command line, I can commit, push, and pull as "Bizarro", but if I open R and run {gert} from the same directory, I am recognized as "Clark".If I move the
IncludeIf
statement to the top of the file, then {gert} will recognize "Bizarro", but git will recognise "Clark"The text was updated successfully, but these errors were encountered: