Skip to content

Instantly share code, notes, and snippets.

@Benehiko
Created March 15, 2018 15:38
Show Gist options
  • Save Benehiko/df3b58b94d1fc936e42fe52a0e86b3ba to your computer and use it in GitHub Desktop.
Save Benehiko/df3b58b94d1fc936e42fe52a0e86b3ba to your computer and use it in GitHub Desktop.
Clone branch bash script
#!/bin/bash
#Simple script to pull compiled jar and lib
echo "Enter github repository URL"
read $github
echo "Enter branch to clone"
read $branch
git clone -b $branch --single-branch $github
echo "Fetched compiled jar and lib"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment