> From: Brian Jones <caneri...@gmail.com>
> In out of the box git, do commits remember the name of the branch that 
> created them? If so, what command can I use to see that information? My 
> assumption is that commits do not record branch names but I want 
> confirmation.

You are correct, commits do not remember the name of the branch that
created them.  The problem is that there is a network (directed
acyclic graph) of commits.  Branches are actually pointers to specific
commits, the current head commit of the branch.  So after a while,
there may be no relationship between the branch that was checked out
in the working copy which created the commit and the commit itself.
Indeed, if you do a rebase on a development branch, most likely all
the commits that were created using that branch are no longer
ancestors of the head of that branch.


You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to