Last active
July 9, 2021 07:54
-
-
Save BlazerYoo/6b0a8b5f19b69255bd695f6fecd779e4 to your computer and use it in GitHub Desktop.
Clone repo into replit without parent directory to immediately get coding [2]
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
read -p 'Repo git link: ' repolink;echo '[1] Cloning repo...';git clone $repolink repo &> /dev/null;echo ' Cloned repo';cd repo;echo '[2] Moving files...';mv {.,}* .. &>/dev/null;echo ' Moved files';cd ..;echo '[3] Removing parent directory...';rm -r repo;echo ' Removed parent directory'; echo 'repl repo initialization complete' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Multi-line version: https://gist.github.com/BlazerYoo/eb25963039366cde47cb41f8e739bb8f