Skip to content

Instantly share code, notes, and snippets.

@Gazzell
Last active March 16, 2020 09:24
Show Gist options
  • Save Gazzell/315e314b7efcebb0819a52e1851d2415 to your computer and use it in GitHub Desktop.
Save Gazzell/315e314b7efcebb0819a52e1851d2415 to your computer and use it in GitHub Desktop.
useful bash commands
# delete node_modules for in all projects (dirs)
find ./ -name "node_modules" -maxdepth 2 -exec rm -rf {} \;
##GIT
#remove all merged local branches
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment