Skip to content

Instantly share code, notes, and snippets.

@Narga
Created February 7, 2014 16:33
Show Gist options
  • Save Narga/8866374 to your computer and use it in GitHub Desktop.
Save Narga/8866374 to your computer and use it in GitHub Desktop.
Git Command Tricks
/* Git Command Tricks
(C) 2003 Dinh Quan Nguyen a.k.a Narga <dinhquan (at) narga (dot) net>
* Website: http://www.narga.net
* http://www.narga.org
*
* You are allowed to use this software in any way you want providing:
* 1. You must retain this copyright notice at all time
* 2. You must not claim that you or any other third party is the author of this software in any way.
* 3. Feedback to me ([email protected]) when you use my works, I will add you to customer list!
* 4. The CSS, XHTML, JS and design is released under GPL: http://www.opensource.org/licenses/gpl-license.php
*/
# Updating all repos in a folder?
```bash
cd repos
find . -maxdepth 1 -type d -exec sh -c '(cd {} && git pull)' ';'
```
Note: if the -depth 1 option is not available, try -mindepth 1 -maxdepth 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment