Skip to content

Instantly share code, notes, and snippets.

@ScottMaclure
Last active April 30, 2021 02:05
Show Gist options
  • Save ScottMaclure/17a0d98198879b7566d27f921e97530a to your computer and use it in GitHub Desktop.
Save ScottMaclure/17a0d98198879b7566d27f921e97530a to your computer and use it in GitHub Desktop.
Git Aliases
# Some handy aliases I use for git/terminal.
# For bash/zsh.
# "git pull all (nested)"
# maxdepth 4 is arbitrary for my needs, e.g, stuff like:
# dev root folder -> client space -> project workspace -> repo1, repo2, repo3
alias gpa='find . -type d -maxdepth 4 -name .git -exec git --git-dir={} --work-dir=$PWD/{}/../ pull \;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment