Skip to content

Instantly share code, notes, and snippets.

@shanerk
Last active March 27, 2023 16:53
Show Gist options
  • Save shanerk/95e75fb024a0cc15a017fb72e05a2a67 to your computer and use it in GitHub Desktop.
Save shanerk/95e75fb024a0cc15a017fb72e05a2a67 to your computer and use it in GitHub Desktop.
Git Diff to Clipboard
#Linux / OSX / ZSH
git diff main --name-status | pbcopy
#Windows Powershell
git diff main --name-status | scb
#Windows CMD
git diff main --name-status | clip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment