Skip to content

Instantly share code, notes, and snippets.

@mrousavy
Created June 16, 2017 07:53
Show Gist options
  • Save mrousavy/872baa36d8114b435fb861713d2d2487 to your computer and use it in GitHub Desktop.
Save mrousavy/872baa36d8114b435fb861713d2d2487 to your computer and use it in GitHub Desktop.
Git Clone for mrousavy GitHub
# Console Colors (Green, NoColor)
GREEN='\033[0;32m'
NC='\033[0m'
# GitHub Username
User="mrousavy"
# Get Repo Var
printf "Repo Name: ${GREEN}$User/"
read repo
printf "${NC}"
# Remove repo folder if exists
if [ -d "$repo" ]; then
rm -r $repo
fi
# git clone it
git clone https://www.github.com/$User/$repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment