Skip to content

Instantly share code, notes, and snippets.

@yonixw
Created November 3, 2022 15:05
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 yonixw/ea069f985276e62dfe5ebfeb220bda78 to your computer and use it in GitHub Desktop.
Save yonixw/ea069f985276e62dfe5ebfeb220bda78 to your computer and use it in GitHub Desktop.
Git REAL diff
* git branch -a
* git ls-files
* git diff <branchA> <branchB> -- <file>
* git diff CI_CD remote_data --
git ls-files | grep -vE "yarn\.lock|package-lock\.json" | xargs -L1 -d '\n' git --no-pager diff remotes/origin/remote_data remotes/origin/CI_CD -- >> diff.diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment