You are here |
jinyuz.dev | ||
| | | |
willhaley.com
|
|
| | | | This article outlines a process for loading a custom git configuration when in a specific directory tree. This sets up a sort of local git configuration per-directory without needing to alter the global .gitconfig file or any other global git or ssh configurations. See here an example .envrc file. This file would be used by direnv to set per-directory env variables with the direnv shell helper. PATH=$PATH:$(pwd)/bin export GIT_AUTHOR_EMAIL="Email to use for this organization" export GIT_AUTHOR_NAME="Name to use for this organization" export GIT_COMMITTER_EMAIL="Email to use for this organization" export GIT_COMMITTER_NAME="Name to use for this organization" export GIT_SSH="my-special-ssh-command-for-this-organization.sh" Setting GIT_SSH allows for customizing the ssh command and identity used for this directory. | |
| | | |
nathanfriend.com
|
|
| | | | Remote Software Engineer at Stripe and cellist based out of Ontario. Previously at GitLab. Fascinated with building usable, delightful software. | |
| | | |
stevenhicks.me
|
|
| | | | Work projects require git commits to be signed with my work email; I'd like commits on my personal projects to be signed with my personal email. The solution: conditional includes in my .gitconfig! | |
| | | |
betterdev.blog
|
|
| | No upstream branch error from Git push command may seem strange. Here I explain it and show how to simplify first branch push to avoid it. |