Skip to content

Instantly share code, notes, and snippets.

@tapsboy
Last active October 2, 2017 05:39
Show Gist options
  • Save tapsboy/28c12d49b966fcee30bb26f59533beb7 to your computer and use it in GitHub Desktop.
Save tapsboy/28c12d49b966fcee30bb26f59533beb7 to your computer and use it in GitHub Desktop.
Git Status of all repos:
find . -maxdepth 1 -type d -exec sh -c '(cd {} && pwd && git status)' ';'
Git Config for all repos:
find . -maxdepth 1 -type d -exec sh -c '(cd {} && cat .git/config)' ';'
Git checkout branchname for all repos:
find . -maxdepth 1 -type d -exec sh -c '(cd {} && pwd && git checkout branchname)' ';'
Git list branches alpha for all repos:
find . -maxdepth 1 -type d -exec sh -c '(cd {} && pwd && git branch)' ';'
git filter-branch -f --tree-filter ‘rm -rf nodemodules' -- --all
git filter-branch -f --index-filter ‘git rm —cached —ignore-unmatch nodemodules' -- --all
git filter-branch -f —prune-empty -- --all
git config --global rerere.enabled true
git add -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment