Skip to content

Instantly share code, notes, and snippets.

@timuruski
Created June 9, 2016 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timuruski/c23063f01220bc96a72d2d0d86bc45e6 to your computer and use it in GitHub Desktop.
Save timuruski/c23063f01220bc96a72d2d0d86bc45e6 to your computer and use it in GitHub Desktop.
#! /bin/bash
set -e
bold=$(tput bold)
normal=$(tput sgr0)
WORKSPACE="${HOME}/workspace"
PROJECTS=(
dotfiles
blog
secret-project
)
for project in "${PROJECTS[@]}"; do
echo "Fetching ${bold}${project}${normal}"
project_path="${WORKSPACE}/${project}"
cd $project_path
git fetch --prune origin
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment