-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gitconfig examples with information on how to different work/p…
…ersonal config
- Loading branch information
Showing
2 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# This file is for customizing the .gitconfig for a specific set of repos (e.g. | ||
# work, personal, etc...) To use this file remove the .example suffix and give | ||
# it a meaningful name. See mixins/gitconfig.custom.example for more details. | ||
|
||
[github] | ||
user = <username> | ||
[user] | ||
email = <email> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
# This file is for customizing the .gitconfig To use this file remove the | ||
# .example suffix. The contents of the file will be concatenated with the | ||
# .gitconfig. Set all custom git config values here. | ||
[github] | ||
user = <username> | ||
[user] | ||
email = <email> | ||
# | ||
# Typically I conditionally include Git config based on the URL in the origin | ||
# remote as described here: | ||
# https://lobste.rs/s/7xgrw9/git_with_multiple_e_mail_addresses#c_kwkefm | ||
# | ||
# See the example file at git/configs/companyname.example for an example of | ||
# what one of these included files should look like. | ||
|
||
[includeIf "hasconfig:remote.*.url:[email protected]:Stratus3D/**"] | ||
path = ~/dotfiles/git/configs/personal-github | ||
[includeIf "hasconfig:remote.*.url:[email protected]:companyname/**"] | ||
path = ~/dotfiles/git/configs/companyname |