Skip to content

Instantly share code, notes, and snippets.

@BlazerYoo
Last active July 9, 2021 07:54
Show Gist options
  • Save BlazerYoo/6b0a8b5f19b69255bd695f6fecd779e4 to your computer and use it in GitHub Desktop.
Save BlazerYoo/6b0a8b5f19b69255bd695f6fecd779e4 to your computer and use it in GitHub Desktop.
Clone repo into replit without parent directory to immediately get coding [2]
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'
@BlazerYoo
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment