Skip to content

Instantly share code, notes, and snippets.

View themattgabriel's full-sized avatar
:octocat:

Matt Gabriel themattgabriel

:octocat:
View GitHub Profile
@themattgabriel
themattgabriel / git-status-repos.sh
Last active June 20, 2019 02:49
Find out if each repository in your git folder has modified or untracked files simultaneously
#!/usr/bin/env bash
# Checks the status of the repos
# Use this site for reference regarding Bash colors: https://misc.flogisoft.com/bash/tip_colors_and_formatting
# MAKE SURE PATH IS CORRECT
CDPATH="CHANGE_TO_PATH" # <--- Put the path to your local repositories here
SUCCESS="echo -e \\n\\e[92mgit status check completed\\e[0m\\n"
cd "$CDPATH" || return
@themattgabriel
themattgabriel / update-local-repos.sh
Last active June 20, 2019 02:45
Update multiple repositories at the same time
#!/usr/bin/env bash
# Updates multiple repositories at once
# Use this site for reference regarding Bash colors: https://misc.flogisoft.com/bash/tip_colors_and_formatting
# MAKE SURE PATH IS CORRECT!!!
CDPATH="CHANGE_TO_PATH" # <--- Put the path to your local repositories here
SUCCESS="echo -e \\n\\e[92mLocal repositories updated\\e[0m\\n"
cd "$CDPATH" || return