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
On my personal machines I set some sendmail.* settings.
Additionally:
When the gitGpgSign variable is set (ie. everywhere except Codespaces) I set commit.gpgSign to true.
When gitHubUsername is set (always, for me) I set github.username to wincent.
I set user.name and user.email based on the value of the gitUserName and gitUserEmail variables, respectively; these default to Greg Hurrell and [email protected], except as noted above.
The idea, then, is to use includeIf to set up some config for work repos whenever the remote URL includes github.com/github/. This might replace, in whole or in part, the host-specific config includes.
Now, the main reason why I think I'm not going to do this is it doesn't jive well with my GPG signing strategy (which is to keep a work key on my work machine, and a personal key on my personal machines). Because the work machine only has the work key, if I go into a personal repo like my dotfiles and set things up to use my personal email, I won't be able to sign the commits any more. I think I could set it up to turn off signing in that case, but do I want to? I don't think it's worth it. Likewise, I don't like the security trade-off of putting a personal GPG key on a work machine. So, all of this is a long-winded way of saying that I don't think I'm going to do this, but I wanted to document the possibility anyway.
The text was updated successfully, but these errors were encountered:
I don't think I'll do this, but I at least wanted to mention it as a possibility.
Variables that I currently set differently on my work vs personal machines:
wincent/aspects/dotfiles/index.ts
Lines 57 to 61 in e2d1b9d
Via host-based includes:
user.email
to[email protected]
.user.email
to[email protected]
.sendmail.*
settings.Additionally:
gitGpgSign
variable is set (ie. everywhere except Codespaces) I setcommit.gpgSign
totrue
.gitHubUsername
is set (always, for me) I setgithub.username
towincent
.user.name
anduser.email
based on the value of thegitUserName
andgitUserEmail
variables, respectively; these default toGreg Hurrell
and[email protected]
, except as noted above.The idea, then, is to use
includeIf
to set up some config for work repos whenever the remote URL includesgithub.com/github/
. This might replace, in whole or in part, the host-specific config includes.Now, the main reason why I think I'm not going to do this is it doesn't jive well with my GPG signing strategy (which is to keep a work key on my work machine, and a personal key on my personal machines). Because the work machine only has the work key, if I go into a personal repo like my dotfiles and set things up to use my personal email, I won't be able to sign the commits any more. I think I could set it up to turn off signing in that case, but do I want to? I don't think it's worth it. Likewise, I don't like the security trade-off of putting a personal GPG key on a work machine. So, all of this is a long-winded way of saying that I don't think I'm going to do this, but I wanted to document the possibility anyway.
The text was updated successfully, but these errors were encountered: