This is a simple bash script used to clone a Drupal Core GIT repository locally when passed a branch number and a new directory name (to host the Drupal repo). I use the issue number as the directory to keep Drupal API documentation patches coordinated with the Drupal.org issue number.
To execute the script, copy and past the commands in the code block into a text editor then save the script as filename.sh (e.g. clonerepo.sh).
Run from a bash prompt (in the same directory) by typing: sh clonerepo.sh
Share the post "A Simple Bash Script to Clone a Drupal Core GIT Repository"