Created
November 3, 2019 03:20
-
-
Save chenrui333/52d98d368fc7f538b17c2e69dc668a48 to your computer and use it in GitHub Desktop.
Clean up multiple git remotes (except rui, upstream and 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
git remote -v | grep fetch | cut -f 1 | egrep -v '(rui|upstream|origin)' | xargs -I {} git remote remove {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment