Skip to content

Instantly share code, notes, and snippets.

View otterley's full-sized avatar

Michael S. Fischer otterley

  • Amazon Web Services
  • Seattle, WA
View GitHub Profile
@eamonnfaherty
eamonnfaherty / pre-push
Last active December 11, 2018 21:22
delete your internet password for AWS CodeCommit repos
#!/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)