Last active
April 30, 2021 02:05
-
-
Save ScottMaclure/17a0d98198879b7566d27f921e97530a to your computer and use it in GitHub Desktop.
Git Aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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