Created
June 16, 2017 07:53
-
-
Save mrousavy/872baa36d8114b435fb861713d2d2487 to your computer and use it in GitHub Desktop.
Git Clone for mrousavy GitHub
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
# 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