Permière version de l'outil

This commit is contained in:
2020-11-04 22:31:18 +01:00
commit ab1b562467
4 changed files with 86 additions and 0 deletions

24
git-start Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
if [ "$#" -ne 1 ]; then
echo "Hey man, met ton nom !"
echo "Regarde, comme ça:"
echo " $0 roberto"
exit
fi
CONFIG="/home/pi/git/gitconfig_$1"
if [ ! -f "$CONFIG" ]; then
echo "Ton fichier de configuration '$CONFIG' n'existe pas. :("
echo "Va voir dans le dossier ~/git"
exit
fi
git config --local include.path $CONFIG
echo "La configuration est bien chargée: '$CONFIG'. Enjoy !"
echo "Pour effacer la configuration, lancer:"
echo " git-stop"