-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jan Wirth
committed
May 23, 2019
1 parent
7d1283c
commit 8f3889a
Showing
6 changed files
with
41 additions
and
27 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
ignorecase = false | ||
[user] | ||
name = Jan Wirth | ||
email = jan@scalab.app | ||
email = jan[email protected] | ||
[filter "lfs"] | ||
clean = git-lfs clean -- %f | ||
smudge = git-lfs smudge -- %f | ||
|
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
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
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,20 @@ | ||
|
||
#!/bin/sh | ||
# This shell script is PUBLIC DOMAIN. You may do whatever you want with it. | ||
|
||
CURRENTUSEREMAIL=$(git config user.email) | ||
|
||
# My mail addresses | ||
EMPLOYED="[email protected]" | ||
ENTERPRISE="[email protected]" | ||
FREELANCE="[email protected]" | ||
|
||
if [ "$CURRENTUSEREMAIL" == "$ENTERPRISE" ]; then | ||
git config --global user.email "$FREELANCE" | ||
elif [ "$CURRENTUSEREMAIL" == "$FREELANCE" ]; then | ||
git config --global user.email "$EMPLOYED" | ||
else | ||
git config --global user.email "$ENTERPRISE" | ||
fi | ||
|
||
echo "switched to $(git config user.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