Skip to content

Instantly share code, notes, and snippets.

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 JulianeAlbuquerque/d73f3477c29dc3d272ae5ad45effd72e to your computer and use it in GitHub Desktop.
Save JulianeAlbuquerque/d73f3477c29dc3d272ae5ad45effd72e to your computer and use it in GitHub Desktop.
Shell script to check satus of git repository for multiple projects
repos=(
"/c/projects/project-1"
"/c/projects/project-2"
"/c/projects/project-3"
)
echo ""
echo "Checking" ${#repos[@]} "repositories for status"
for repo in "${repos[@]}"
do
echo ""
echo "****** Checking status for" ${repo} "******"
cd "${repo}"
git status
echo "******************************************"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment