Skip to content

Instantly share code, notes, and snippets.

@nobitagit
Last active February 8, 2018 09:53
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 nobitagit/ad1f1df0ebbd2b324f8e2d07c2bd21cf to your computer and use it in GitHub Desktop.
Save nobitagit/ad1f1df0ebbd2b324f8e2d07c2bd21cf to your computer and use it in GitHub Desktop.
git snippets
# only diff by etension (or whatever pattern)
git diff -- '*.js'
# show file from another branch without checkout
git show master:./src/path/to/my/file.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment