Hacker News new | ask | show | jobs
by torstenvl 778 days ago
Isn't that what a branch and a merge commit do?
1 comments

Yep, as long as you use "--no-ff" to force a merge commit (and presumably edit the merge commit message instead of just using the default).

For viewing history you can use "git log --first-parent" to view only those merge commits, which should satisfy the people who love a linear history, without actually losing the intermediate commits.