#!/bin/sh # exit code specifies whether or not this is a git directory git rev-parse --is-inside-work-tree >/dev/null 2>&1 && exit 0 || exit 1