#!/bin/bash # Return 0 if you are in a git repo # Return 1 otherwise git rev-parse --is-inside-work-tree > /dev/null 2>&1