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.

Revisions

  1. tapsboy revised this gist Oct 2, 2017. No changes.
  2. tapsboy revised this gist Oct 2, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions remove-node_modules-from-history
    Original file line number Diff line number Diff line change
    @@ -3,5 +3,7 @@ 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
  3. tapsboy revised this gist Oct 2, 2017. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion remove-node_modules-from-history
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    git filter-branch -f --tree-filter ‘rm -rf nodemodules' -- --all
    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
  4. tapsboy revised this gist Oct 2, 2017. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion remove-node_modules-from-history
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    Git cleanup: Check If node_modules can be removed from history
    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
  5. tapsboy revised this gist Oct 2, 2017. 2 changed files with 6 additions and 1 deletion.
    1 change: 0 additions & 1 deletion remove-node_modules
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    _
    6 changes: 6 additions & 0 deletions remove-node_modules-from-history
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    Git cleanup: Check If node_modules can be removed from history
    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
  6. tapsboy revised this gist Oct 2, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions remove-node_modules
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    _
  7. tapsboy created this gist Sep 15, 2017.
    12 changes: 12 additions & 0 deletions maxdepth
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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)' ';'