0

I'm using Bitbucket and want to know the source branch from where this specific branch was created. Is there any git command that can give the name of the parent branch?

pgupta
  • 23
  • 6
  • 2
    Possible duplicate of [How do I determine the source branch of a particular branch?](https://stackoverflow.com/questions/6374564/how-do-i-determine-the-source-branch-of-a-particular-branch) – TheCodeArtist Feb 22 '19 at 06:46
  • 2
    Possible duplicate of [Find the parent branch of a Git branch](https://stackoverflow.com/questions/3161204/find-the-parent-branch-of-a-git-branch) – scrowler Feb 22 '19 at 06:47

1 Answers1

0

Try this

1) git log --oneline --graph --color --all --decorate
// Using this command you will get all git log in command line

2) gitk --all
// This is GUI based solution, you need to download gitk library for this
Sahil Darji
  • 224
  • 1
  • 6
  • thanks, but this command would give me the commit history for this particular branch, but I don't see the name of the parent branch showing up in the log – pgupta Feb 25 '19 at 12:11