Skip to content

Instantly share code, notes, and snippets.

@Joehuu
Last active February 15, 2024 09:00
Show Gist options
  • Save Joehuu/fe5ee272cc0682e88635335c4ab21666 to your computer and use it in GitHub Desktop.
Save Joehuu/fe5ee272cc0682e88635335c4ab21666 to your computer and use it in GitHub Desktop.
Useful commands

Useful commands

Applying git diff from clipboard

PowerShell:

Get-Clipboard | git apply

shell:

pbpaste | git apply

Copying git diff to clipboard

PowerShell:

git diff | Set-Clipboard

shell:

git diff | pbcopy

Getting SHA256 from a file

PowerShell:

Get-FileHash /path/to/file

shell:

shasum /path/to/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment