Skip to content

Instantly share code, notes, and snippets.

@ajitatif
Created November 1, 2023 15:49
Show Gist options
  • Save ajitatif/6f19772198cc859ada722b63ce22ffc6 to your computer and use it in GitHub Desktop.
Save ajitatif/6f19772198cc859ada722b63ce22ffc6 to your computer and use it in GitHub Desktop.
Some git commands that save time
  • Get diff from a release
git diff $(gh release view <previous_release_version> --jq ".targetCommitish" --json targetCommitish) $(gh release view <release_version> --jq ".targetCommitish" --json targetCommitish)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment