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
# Original Gist: https://gist.github.com/trinitronx/5979265 | |
# RP Gist: https://gist.github.com/returnpathadmin/dbffee1d3d675f271435 | |
# Function to set git author & committer email addresses based on your cwd | |
# Uses the very first .gitemail file found while traversing up directories | |
# Use case: As a developer, | |
# Given that I have a .gitemail file in my work directory containing my work email | |
# When I am in the work directory | |
# Then I should be able to commit with my work email address | |
# Given that I have a .gitemail file in my public directory containing my public email | |
# When I am in the public directory |