Skip to content

Instantly share code, notes, and snippets.

@michael-sumner
Created May 26, 2023 12:04
Show Gist options
  • Save michael-sumner/b03f4d5b02a51a4a8e23cc38aff80f83 to your computer and use it in GitHub Desktop.
Save michael-sumner/b03f4d5b02a51a4a8e23cc38aff80f83 to your computer and use it in GitHub Desktop.
Copy git diff staged to clipboard for macOS
git diff --staged | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment