hyperf/bin/del-useless-remotes.sh
李铭昕 58a21e941d
Create CHANGELOG-2.1.md (#2629)
* Create CHANGELOG-2.1.md

* Update CHANGELOG-2.1.md

* Create del-useless-remotes.sh
2020-10-13 12:47:58 +08:00

9 lines
200 B
Bash
Executable File

#!/usr/bin/env sh
REPOS=$(git remote)
for REPO in $REPOS ; do
if [ $REPO != 'upstream' ] && [ $REPO != 'origin' ]; then
git remote remove $REPO
echo "delete remote $REPO success."
fi
done