|
|
|
|
|
by vive-la-liberte
3868 days ago
|
|
I have four directories which I frequently use. For one of them, I commit as let's say me@example.com and in the other three as me@example.edu. 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. 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. Finally, I have two-letter aliases to git add, git diff, git commit, git push and so on. Dead simple and works great. All I need is my bashrc. |
|