Skip to content

Instantly share code, notes, and snippets.

@pram
Last active September 23, 2015 15:12
Show Gist options
  • Save pram/0811c14bf8dd210acd96 to your computer and use it in GitHub Desktop.
Save pram/0811c14bf8dd210acd96 to your computer and use it in GitHub Desktop.
Useful Unix

Run a git pull on all sub folders

find . ! -path . -maxdepth 1 -type d -exec sh -c 'cd $0 && git pull' {} \;

Windows - delete deep dependency trees - open windows command window (not git bash)

mkdir empty
robocopy empty node_modules /MIR
rmdir empty

List the files changed a branch

git show --pretty="format:" --name-only <source_branch>.. | sort | uniq

Where source_branch is the branch from which you branched off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment