git-configure.sh 245 B

123456789
  1. #!/bin/bash
  2. DIRNAME=$(git rev-parse --show-toplevel)
  3. if ! git config --local -l | egrep -q include.path=../.gitconfig$; then
  4. git config --local --add include.path ../.gitconfig
  5. rm ${DIRNAME}/.git/index
  6. git checkout HEAD -- ${DIRNAME}
  7. fi