1#!/bin/bash 2 3# Check if inside a git repo 4function is_a_git_repo { 5 git rev-parse --is-inside-work-tree >/dev/null 2>&1 6}