A quick way to do this is to enter
git log --pretty=format:'%h : %s' --graph
then just follow the graph on the right side until you find the merge point. You can also do
git log --pretty=format:'%h : %s' --graph > temp.txt
which puts the output in a temp.txt file that you can open in your editor, and use a search tool to search for text such as merge.
This approach is useful for answering many other questions about the origin of your last commit, so they put
alias git_graph="git log --pretty=format:'%h : %s' --graph"
in my .bash_profile file, so I can just use `` git_log`` to see this information.
Orbromios
source share