Skip to content

Instantly share code, notes, and snippets.

@gbpereira
Last active September 17, 2015 16:59
Show Gist options
  • Save gbpereira/00dab90d26179acaf00f to your computer and use it in GitHub Desktop.
Save gbpereira/00dab90d26179acaf00f to your computer and use it in GitHub Desktop.
Command to run rubocop on branch modified files
git diff origin/dev --name-only --diff-filter=ACMRTUXB | xargs rubocop
ou
git diff my_branch..upstream/dev --name-only --diff-filter=ACMRTUXB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment