Files
FSI.BT.IR.Tools/git-remote-save
Maier Stephan SI 1c68b8f401 Sicherung
2023-04-17 07:07:49 +02:00

7 lines
201 B
Bash

#!/bin/bash
gitTop=$( git rev-parse --show-toplevel 2> /dev/null )
[[ "" == "$gitTop" ]] && exit 0
gitRemotes=$gitTop/.gitremotes
[[ "$( git remote -v )" == "" ]] && exit 0
git remote -v > $gitRemotes