Skip to content

Instantly share code, notes, and snippets.

@alber70g
Last active February 3, 2016 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alber70g/5a6f58a26ec40496f7ba to your computer and use it in GitHub Desktop.
Save alber70g/5a6f58a26ec40496f7ba to your computer and use it in GitHub Desktop.
Pull all subdirectories
alias gitall="find . -type d -maxdepth 1 -exec sh -c '(echo -e \"\e[4m{} \e[0m:\" && cd {} && git pull)' ';'"

Open Git Bash

Copy the alias line to your ~/.bash_profile.

vim ~/.bash_profile

Then source it to the current terminal

$ source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment