Perform git pull on subdirectory (recursive)


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.