Skip to content

Instantly share code, notes, and snippets.

@ogirginc
Forked from rwjblue/rspec-uncommitted.sh
Created April 25, 2019 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogirginc/5e289a6cd37bdd51e1f0c4f1716cbbbd to your computer and use it in GitHub Desktop.
Save ogirginc/5e289a6cd37bdd51e1f0c4f1716cbbbd to your computer and use it in GitHub Desktop.
Run rspec only on uncommited files. No more accidentally pushing a :focus tag to master!
rspec `git ls-files --modified --others spec`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment