Skip to content

Instantly share code, notes, and snippets.

@pclouds
Created March 16, 2010 14:15
Show Gist options
  • Save pclouds/334004 to your computer and use it in GitHub Desktop.
Save pclouds/334004 to your computer and use it in GitHub Desktop.
git-ls-peer.sh
#!/bin/sh
export GIT_DIR="$1"
echo "name=$(git config repo.name)"
echo "url=$(git config repo.url)"
echo
for i in $(git remote);do
git config remote.$i.url
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment