Skip to content

Instantly share code, notes, and snippets.

@anthonywong
Last active August 7, 2025 05:10
Show Gist options
  • Select an option

  • Save anthonywong/3f32735663738ffb50baa5bfaae9f107 to your computer and use it in GitHub Desktop.

Select an option

Save anthonywong/3f32735663738ffb50baa5bfaae9f107 to your computer and use it in GitHub Desktop.
Advanced Git commands
# Finds the merge commits that lie on the path between a specific commit to the head. Useful for knowing when a commit has been merged by maintainer:
git log --oneline --graph --merges --ancestry-path <commit-hash>..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment