Created
March 8, 2018 03:03
-
-
Save aduth/671734dcfda49a45c10d255931395141 to your computer and use it in GitHub Desktop.
Git remote all remotes except origin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git remote -v | grep "(fetch)" | sed -e 's#[[:blank:]].*##g' | grep -v "origin" | xargs -n 1 git remote rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment