Posted By

luizlopes on 01/05/12


recursive linux find update exec git Pull

Versions (?)

Perform git pull on subdirectory (recursive)

 / Published in: Bash

A fast and easy way to go through all vim-pathogen bundles and perform a git pull on all of them.

  1. # find all .git directories and exec "git pull" on the parent.
  2. find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;

Report this snippet  

You need to login to post a comment.