This file contains 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
#!/bin/sh | |
# guide on how to add global git hooks: | |
# https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook | |
# add this as a pre-push git hook | |
# .git/hooks/pre-push | |
remote="$1" | |
url="$2" | |
REGION=$(git remote -v | grep codeco | awk -F\/ '{print $3}' | awk -F. '{print $2}' | uniq) |