Sicherung

This commit is contained in:
Maier Stephan SI
2023-04-17 07:07:49 +02:00
parent f3f89b94f5
commit 1c68b8f401
1307 changed files with 7918 additions and 82491 deletions

11
git-remote-init Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
gitTop=$( git rev-parse --show-toplevel 2> /dev/null )
[[ "" == "$gitTop" ]] && exit 0
gitRemotes=$gitTop/.gitremotes
[[ ! -e $gitRemotes ]] && exit 0
# if exists added remote repos then exit
[[ "$( git remote -v )" == "" ]] && exit 0
remotes=$(sed '/origin/d' $gitRemotes | awk 'NR%2==0 {print $1";"$2 }')
for r in $remotes ; do
git remote add $(echo $r | sed 's/;/ /')
done