Skip to content

Instantly share code, notes, and snippets.

@ksafranski
Created April 14, 2013 14:15
Show Gist options
  • Save ksafranski/5382885 to your computer and use it in GitHub Desktop.
Save ksafranski/5382885 to your computer and use it in GitHub Desktop.
Script for easily testing Git pull requests.
#!/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