Skip to content

Instantly share code, notes, and snippets.

@frace
Created July 21, 2015 10:37
Show Gist options
  • Select an option

  • Save frace/4785a3b310fe72131f2a to your computer and use it in GitHub Desktop.

Select an option

Save frace/4785a3b310fe72131f2a to your computer and use it in GitHub Desktop.
A Git alias to switch users: git su name email
[alias]
su = "!switchuser() { git config user.name $1 && git config user.email $2; }; switchuser"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment