7 lines
201 B
Bash
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
|