Skip to content

Instantly share code, notes, and snippets.

@php-cpm
Created September 23, 2021 04:22
Show Gist options
  • Save php-cpm/ca6636d513b8b09f249e73960e475000 to your computer and use it in GitHub Desktop.
Save php-cpm/ca6636d513b8b09f249e73960e475000 to your computer and use it in GitHub Desktop.
#/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