Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- # This file should live at ~/.git/hooks
- import os
- from subprocess import call
- if "git/work" in cwd:
- print "Using work account"
- call("git config user.name <Your name>", shell=True)
- call("git config user.email <Your work email>", shell=True)
- else:
- print "Using oss account"
- call("git config user.name <Your oss handle>", shell=True)
- call("git config user.email <Your oss email>", shell=True)
Add Comment
Please, Sign In to add comment