--- lang: ja-jp breaks: true --- # git 派生元のブランチを確認する 2022-03-11 > gitのブランチの派生元(親ブランチ)を確認する > https://nnahito.com/articles/71 ```bash= git show-branch | grep '*' | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -1 | awk -F'[]~^[]' '{print $2}' ``` ###### tags: `git` `ブランチ` `確認`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up