Get commit of existant branch created from another one

,

I’m creating a new branch through gitlab.

How can i get the commit(hash code) information of branch pack that was used to create branch test through git commands/ gitlab API ?

how can i know from which hash or commit my branch was created from? or can i get only the list of commits that occured to my initial branch or creation time of my new branch ?