Skip to content

Instantly share code, notes, and snippets.

@naus3a
Created October 2, 2019 12:14
Show Gist options
  • Save naus3a/1a6cb951ae47d78cf32871ff9859a450 to your computer and use it in GitHub Desktop.
Save naus3a/1a6cb951ae47d78cf32871ff9859a450 to your computer and use it in GitHub Desktop.
#!/bin/bash
# ./cloneIn.sh [dest_path] [user] [pass] [repo]
DIR=$1
rm -r $DIR/*
cd $DIR
git clone https://$2:$3@$4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment