git allow you to save configuration settings in multiple files (since Git 1.7.10+)
You can put your aliases 1 into the separate file and create 'include' section in the config file:
[include]
path=~/.gitaliases
Using include section also you can define settings for different (personal/work) environments.
See the example here.
Also using this trivial alias you can check your current username/email settings.
whoami = "!f() { git config user.name; git config user.email; }; f"
Check other alises here
Also, you can keep your aliases under version control and create a symbolic link to the corresponding file.
Symlink creation for configuration files can be simplified by using dot2 tool.
Footnotes
-
Aliases documentation ↩