I have four directories which I frequently use. For one of them, I commit as let&#x27;s say me@example.com and in the other three as me@example.edu.<p>So first of all, I have a bash function declared in my bashrc which takes one argument -- the domain -- and sets a few evironment variables such as GIT_AUTHOR_EMAIL and GIT_COMMITER_EMAIL.<p>Next I have one two-letter alias and three three-letter aliases which all cd to their respective paths and call the function to set the env vars.<p>Finally, I have two-letter aliases to git add, git diff, git commit, git push and so on.<p>Dead simple and works great. All I need is my bashrc.