Skip to content

Instantly share code, notes, and snippets.

@hidakatsuya
Last active December 31, 2023 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hidakatsuya/a51cbe824d08d8c89239d5a1d824f32d to your computer and use it in GitHub Desktop.
Save hidakatsuya/a51cbe824d08d8c89239d5a1d824f32d to your computer and use it in GitHub Desktop.
Git Cheat Sheet

特定のコミットが含まれる/含まれないブランチを調べる

git branch --contains <commit>
git branch --no-contains <commit>
git branch -r --contains <commit>
git branch -a --contains <commit>

特定のコミットが含まれる/含まれないタグを調べる

git tag --contains <commit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment