Skip to content

Instantly share code, notes, and snippets.

@fud
Created July 14, 2016 00:04
Show Gist options
  • Save fud/a8cebc7716c7c64cf76ccaab9f505598 to your computer and use it in GitHub Desktop.
Save fud/a8cebc7716c7c64cf76ccaab9f505598 to your computer and use it in GitHub Desktop.
alias to set email for a github project

Set a global alias like a bash alias that can set an email address for a project.

alias.homeprofile=config user.email "x.x@gmail.com"

Then @ work when I want to commit something to my home github project.

cd ~/git-project
git homeprofile

To confirm it's worked.

git config --get user.email
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment