-
-
Save hslabbert/955cb131af976d802b777652b8d1d777 to your computer and use it in GitHub Desktop.
yeet a git repo and reclone
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/sh | |
cd $1 | |
URL=$(git remote get-url origin) | |
cd .. | |
rm -Rf $1 | |
git clone "${URL}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment