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
Git takes care of choosing/finding the proper file according to OS/user/system global,etc.
It would be great to allow bin to read the token from a bin.github-token section key.
TIL that adding PAT's in the gitconfig is such a thing. Is there any other source I can ready about this a bit more? I find ir surprising that neither the github docs or the gh CLI mention anything about storing the token this way. In fact, the gh CLI suggests using the GH_TOKEN or GITHUB_TOKEN variables here: https://cli.github.com/manual/gh_help_environment
Also, libgit's C API features gitconfig functions, so I guess it's a pretty widespread practice. It's also very convenient, since you can centralize all your global Git tooling config in a single file and also repo-local configs. You can also do some fancy conditional including (e.g. depending on your current dir).
git config
retrieves configuration values from its default config files (seeman git-config
) usingsection.key
syntax and previously set also withgit config
.Examples:
https://github.com/mhayashi1120/yagist.el/blob/master/README.md#config
https://www.spacemacs.org/layers/+source-control/github/README.html#git-configuration
Git takes care of choosing/finding the proper file according to OS/user/system global,etc.
It would be great to allow bin to read the token from a
bin.github-token
section key.Also, Git credential helpers might come handy (although I've not used it, so far).
The text was updated successfully, but these errors were encountered: