Guest User

Untitled

a guest
Mar 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. # This file should live at ~/.git/hooks
  4.  
  5. import os
  6. from subprocess import call
  7.  
  8. if "git/work" in cwd:
  9. print "Using work account"
  10. call("git config user.name <Your name>", shell=True)
  11. call("git config user.email <Your work email>", shell=True)
  12. else:
  13. print "Using oss account"
  14. call("git config user.name <Your oss handle>", shell=True)
  15. call("git config user.email <Your oss email>", shell=True)
Add Comment
Please, Sign In to add comment