D
D
Dmitry Sonko2013-09-27 12:30:33
git
Dmitry Sonko, 2013-09-27 12:30:33

Question about displaying branches in Git

We use git-flow in our work, today it came to a conflict with the authorities that we allegedly are developing not according to the regulations described for this approach. Is there an interface, a program, or something else where you can visually poke to a commit and it will be written there that the given branch in which this commit came from such and such a branch, plus when merging branches, when we click in merge commit, it shows which branch was poured. We use Smartgit, but stubbornly does not see it there and does not want to understand the principle of the graph in git. I will be very grateful.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sanjar Aubakirov, 2013-09-27
@c0rp

You can show the tree like this:

log --pretty=format:'%h was %an, %ar, message: %s' --graph

A
alpha6, 2013-09-27
@alpha6

In principle, if simply displaying the tree is enough, you can look at GitExtensions. She beautifully shows the tree with all the manipulations on the branches.
SourceTree still can do the same, but I like its display mode less, although it can do more.

D
diseaz, 2013-09-27
@diseaz

If branches A and B were merged and branch B was deleted, then it is impossible for Git to determine which branch: A or B, or some other, now defunct C, commits were made.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question