/usr/share/doc/git/contrib
NameSizeModeActions
buildsystems/-0755rm
coccinelle/-0755rm
contacts/-0755rm
credential/-0755rm
diff-highlight/-0755rm
examples/-0755rm
fast-import/-0755rm
git-jump/-0755rm
git-shell-commands/-0755rm
hg-to-git/-0755rm
hooks/-0755rm
long-running-filter/-0755rm
persistent-https/-0755rm
remote-helpers/-0755rm
stats/-0755rm
subtree/-0755rm
thunderbird-patch-inline/-0755rm
update-unicode/-0755rm
vscode/-0755rm
workdir/-0755rm
coverage-diff.sh20970644editdlrm
git-resurrect.sh43570644editdlrm
README21130644editdlrm
remotes2config.sh7700644editdlrm
rerere-train.sh16390644editdlrm
Edit: /usr/share/doc/git/contrib/remotes2config.sh (770B)
#!/bin/sh # Use this tool to rewrite your .git/remotes/ files into the config. . git-sh-setup if [ -d "$GIT_DIR"/remotes ]; then echo "Rewriting $GIT_DIR/remotes" >&2 error=0 # rewrite into config { cd "$GIT_DIR"/remotes ls | while read f; do name=$(printf "$f" | tr -c "A-Za-z0-9-" ".") sed -n \ -e "s/^URL:[ ]*\(.*\)$/remote.$name.url \1 ./p" \ -e "s/^Pull:[ ]*\(.*\)$/remote.$name.fetch \1 ^$ /p" \ -e "s/^Push:[ ]*\(.*\)$/remote.$name.push \1 ^$ /p" \ < "$f" done echo done } | while read key value regex; do case $key in done) if [ $error = 0 ]; then mv "$GIT_DIR"/remotes "$GIT_DIR"/remotes.old fi ;; *) echo "git config $key "$value" $regex" git config $key "$value" $regex || error=1 ;; esac done fi