Question

What is a quick way to find the initial creation of a branch in git?

I want to run it with a diff on HEAD

Was it helpful?

Solution

What git is really tracking is the point of divergence between the sources, so you will not necessarily, have the actual creation point of the branch available. Lots of things like merges, rebases, cherry-picks, etc will lose it.

So, unfortunately, there is no easy solution. I recommend using a GUI to examine the tree (I like GitX-dev on the mac)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top