From: Joseph Nuthalapati Date: Wed, 30 Dec 2020 06:26:03 +0000 (+0530) Subject: Add shell alias equivalent of git-pull-all X-Git-Url: http://njoseph.me/gitweb/goutils.git/commitdiff_plain/060736857e23e2ffd405a32a60306fcb77454dc2 Add shell alias equivalent of git-pull-all --- diff --git a/utils/git_pull_all.go b/utils/git_pull_all.go index f2bd685..c38a655 100644 --- a/utils/git_pull_all.go +++ b/utils/git_pull_all.go @@ -8,6 +8,9 @@ import ( "sync" ) +// Equivalent to the following shell alias +// alias git-pull-all="ls -d */ | xargs -P12 -I{} git -C {} pull" + func GitPullAll() { currentDirectory, err := os.Getwd() if err != nil {