Skip to content

Instantly share code, notes, and snippets.

@androidyue
Created November 10, 2019 09:04
Show Gist options
  • Save androidyue/eee7f2a3217ecf0668db3c0e47d0fafb to your computer and use it in GitHub Desktop.
Save androidyue/eee7f2a3217ecf0668db3c0e47d0fafb to your computer and use it in GitHub Desktop.
Check which branch containing the commit hash
#!/bin/bash
git branch --contains $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment