You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
DIRNAME=$(git rev-parse --show-toplevel)
|
|
|
|
if ! git config --local -l | egrep -q include.path=../.gitconfig$; then
|
|
git config --local --add include.path ../.gitconfig
|
|
rm ${DIRNAME}/.git/index
|
|
git checkout HEAD -- ${DIRNAME}
|
|
fi
|