简体   繁体   中英

get name of a branch from which a (current) branch is created in git

Lets say I created a branch called feature1 from develop branch.

Also, I created a issue123 branch from feature1 branch.

Now I want to know that feature1 is created from develop branch, and similarly issue123 branch is created from develop branch.

How can I do that?

Any help is very much appreciated. Thanks.

Not Exactly what you want, but some close solutions to it are ..

git show-branch
git show-branch --all

And,

git log --all --graph --decorate --oneline --simplify-by-decoration

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM