Skip to content

Instantly share code, notes, and snippets.

@todgru
Created February 7, 2024 23:57
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 todgru/9de907d55cb7aa1c2465949bf8c82cec to your computer and use it in GitHub Desktop.
Save todgru/9de907d55cb7aa1c2465949bf8c82cec to your computer and use it in GitHub Desktop.
Specify differences between to branches and only files with a certain name:

Specify differences between to branches and only files with a specific filename:

git diff topic..main -- './file1.txt' '**/file1.txt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment