Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hackernews1134
on Nov 24, 2023
|
parent
|
context
|
favorite
| on:
Git Branches: Intuition and Reality
If I checkout the merge commit and then do a ‘git log -n 5’, which parent pointer is followed to show the previous commit logs? A or B or Both / all if it is more than a 2-way merge?
paulddraper
on Nov 24, 2023
|
next
[–]
By default it's by commit date.
Other ordering is possible, e.g. --topo-order
baronswindle
on Nov 24, 2023
|
prev
[–]
As I recall, it shows commits from both parents in order of the committed date.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: