Last active
February 8, 2018 09:53
-
-
Save nobitagit/ad1f1df0ebbd2b324f8e2d07c2bd21cf to your computer and use it in GitHub Desktop.
git snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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