Created
April 14, 2013 14:15
-
-
Save ksafranski/5382885 to your computer and use it in GitHub Desktop.
Script for easily testing Git pull requests.
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
#!/bin/bash | |
# Script to easily (re)create folder and pull repo for testing | |
echo "Enter folder name [ENTER]:" | |
read folder | |
echo "Enter git repo (space) branch [ENTER]:" | |
read repo | |
echo "(Re)Creating folder..." | |
rm -rf $folder | |
mkdir $folder | |
cd $folder | |
echo "" | |
echo "DONE" | |
echo "" | |
echo "Pulling Repo..." | |
echo "-----------------------------------" | |
git init | |
git pull $repo | |
echo "" | |
echo "DONE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment