Created
September 23, 2021 04:22
-
-
Save php-cpm/ca6636d513b8b09f249e73960e475000 to your computer and use it in GitHub Desktop.
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
#/bin/bash | |
# I want to pull all updates of my projects in a dir like this | |
# 通过以下命令快速对目录下多个git仓库代码拉取更新 | |
ls -l |grep "^d" |awk '{print $9}'|xargs -I % bash -c 'echo % && cd % && git pull && cd ..' '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment