Skip to content

Instantly share code, notes, and snippets.

@bitlather
Created July 12, 2019 19:48
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 bitlather/d3a4e7da41b652642770b974aa97f93f to your computer and use it in GitHub Desktop.
Save bitlather/d3a4e7da41b652642770b974aa97f93f to your computer and use it in GitHub Desktop.
$ git diff --name-only master my_branch | sort
@bitlather
Copy link
Author

bitlather commented Jul 12, 2019

Don't forget to pull master into your branch first, and make sure master is up-to-date with what's on the server.

This is useful for pasting into a code editor like Sublime Text, then multi-line editing to run tools like rubocop on just the things that have been touched in your branch.

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