Last active
January 20, 2025 07:25
-
-
Save daopk/51409234f1b1f9f590555dfbaaaf0649 to your computer and use it in GitHub Desktop.
This is how I manage multiple gitconfig files
This file contains hidden or 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
[alias] | |
c = checkout | |
cm = commit -m | |
s = status | |
b = branch | |
hide = update-index --assume-unchanged | |
unhide = update-index --no-assume-unchanged | |
hidden = !git ls-files -v | grep ^h | |
[includeIf "gitdir:~/Workspace/work/"] | |
path = ~/.gitconfig-work | |
[includeIf "gitdir:~/Workspace/apps/"] | |
path = ~/.gitconfig-personal | |
[includeIf "gitdir:~/Workspace/personal/"] | |
path = ~/.gitconfig-personal | |
[init] | |
defaultBranch = main | |
[push] | |
autoSetupRemote = true | |
[pull] | |
rebase = false |
This file contains hidden or 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
[user] | |
name = Phan Khắc Đạo | |
email = [email protected] | |
This file contains hidden or 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
[user] | |
name = My Work Name | |
email = [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment