Created
September 4, 2024 19:05
-
-
Save jamieoliver/459cef37ca9f9ae38bf395b800cb67ff to your computer and use it in GitHub Desktop.
Conditionally set Git user.name and user.email based on remote URL otherwise require them to be set locally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[includeIf "hasconfig:remote.*.url:https://github.com/**"] | |
path = .gitconfig-github | |
[includeIf "hasconfig:remote.*.url:https://huggingface.co/**"] | |
path = .gitconfig-huggingface | |
[user] | |
useconfigonly = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = <name> | |
email = <username>@users.noreply.github.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = <name> | |
email = <username>@users.noreply.huggingface.co |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment