Hi how can i chceck connection between branches in gitbash? I'm not sure that i did branches well. So I have Master -> dev -> feature and im not sure that feature is child of dev branch :)
Asked
Active
Viewed 165 times
2
-
Use a GUI Git client. [Fork](https://git-fork.com/), [SourceTree](https://www.sourcetreeapp.com) and [Git Extensions](http://gitextensions.github.io) are some good and free Git clients for Windows. – axiac Dec 14 '18 at 11:56
-
I use [gitk](https://git-scm.com/docs/gitk) – jschnasse Dec 14 '18 at 11:57
-
Ok but now where to find that. I use that i'm searching and can't find it – Dec 14 '18 at 12:00
-
Related: https://stackoverflow.com/q/3161204/2025395 – jchevali Dec 14 '18 at 12:21
-
Git branches are literally just pointers to a commit. There's no such thing as a "child branch". Can you explain what you want to know, maybe using a diagram? – ChrisGPT was on strike Dec 14 '18 at 12:25
-
1The tools suggested by current answers likely will show you what you want to see, but it depends what exactly you're worried about having done "right" or not. Because of how git's concept of a branch works, the only "connection" between branches is shared history, so beyond that there likely isn't anything to check - which is why any tool that shows the commit graph visually is likely to get you what you need. – Mark Adelsberger Dec 14 '18 at 14:25
2 Answers
4
You can give this a try:
git log --graph --all --decorate --simplify-by-decoration
It will only show commits that are branch heads or tagged.

gdemoya
- 56
- 2
1
In bash use https://git-scm.com/docs/git-show-branch
git show-branch --all
Or gitk
Git-Docu has also a page that lists GUI clients for different OS: https://git-scm.com/download/gui/windows

jschnasse
- 8,526
- 6
- 32
- 72