Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
drchickensalad
on Dec 30, 2019
|
parent
|
context
|
favorite
| on:
The Linux codebase has over 3k TODO comments, many...
Doesn't this still put all the commits on the main branch?
nitrogen
on Dec 30, 2019
|
next
[–]
You can keep the branch commits for detailed history, and look only at merge commits the when you don't need details:
git log --first-parent -m
This will show a linear history of merges, treating the merged code as being added in the merge commit. You can add -p to see the diffs.
makapuf
on Dec 30, 2019
|
prev
[–]
No you commit in feature branches then merge to main branch.
abricot
on Dec 30, 2019
|
parent
[–]
Do you then keep the branch around forever?
nitrogen
on Dec 30, 2019
|
root
|
parent
[–]
The branch history is preserved in the commit graph of the main branch, so you don't need to keep the feature branch.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: