Replies: 3 comments 3 replies
-
I used to feel that way, but the advantage of the merge commit is that you can more clearly see the different chunks of work from the commit history, and they map conveniently to the GH pull requests. I found that once I got used to this way of working I found it good. That said, it's not exactly a hill I'd die on. If it's super problematic for you we can change it. |
Beta Was this translation helpful? Give feedback.
-
The way we handle PRs and git history at Undo is that we consider each commit as an independent change which makes sense on its own (and, at least in theory, should pass all tests). When a PR is marked as ready for review, it's not supposed to contain any “uninteresting” commit just to fix typos, build problems, etc. This is achieve by extensive use of fixup and squash commit together with Once the PR is marked as ready, we don't rebase any more. Review comments are addressed via fixup/squash commits that get pushed to the branch. If there are such commits, before merging into We also never allow merges from The end result is that each branch merged into |
Beta Was this translation helpful? Give feedback.
-
Oooops, @gregthelaw and @barisione : I had to push changes from PR #6 to
Note that Greg's commit is a Merge-request, but my latest commit is just a rebase-and-push, retaining linear history. This is the kind of pushes I was hoping we'd do to this repo. Still ... awating ... a resolution on the items aired out on this thread. (Nothing pressing urgent; just a reminder). |
Beta Was this translation helpful? Give feedback.
-
HI, @gregthelaw -- I see that my recent PR to this repo has resulted in a merge-commit:
From past experience, I have not found much value in merge-commits, especially the diffs of the merge-commit,
2e5fc6d
, are identical to the original commit authored,aa3797c
.I think only you as a Owner has permission to change this thru
Settings
drop-down.Going by this GitHub article, I prefer to have a linear history and squash all commits to a single coherent commit when pushing to
/main
.What's your take? And can we finalize on something?
Thanks, for listening.
Beta Was this translation helpful? Give feedback.
All reactions