-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typos #237
Typos #237
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Couple of small nits:
- Is the linked issue wrong? That seems unrelated to the changes here 🤔
- Could you rebase and drop the top two commits (the accidental one and the one just reverting it?). I'd rather just have a single clean commit in the PR.
Thank you! 😄
@Sergio0694 You could squash merge to get a single clean commit too!? |
@Nirmal4G We're trying to just merge PRs normally, as that preserves the history better. Squashing still preserves the individual commits, which in this case are just not meaningful. I'd rather just have PRs only keep the commits they need. This is also why eg. when doing lots of trial and errors, I'd rather just squash those commits and force push to the PR branch, and then merge that PR normally (so that all commits are kept but you still don't have a dozen test commits that are just clutter). I'll keep this open for a few days in case Daniel gets back, if not I'll close and cherry-pick this commit manually 🙂 |
@Sergio0694 What you described is rebase merge. Squashing takes all the changes from the tip and combines into a single commit on top.
All merge strategies provided by github PR flow preserve history except rebase merge (This behavior can be changed) but only the way they merge is different. You can configure merge options in repo settings. Squash and Merge your PR commits Personally, I prefer linear history on For instance, Blame gets messed up if you include lines that have cascading changes, diff into completely different than viewing individual commits. For this reason, I always recommend against merge commit. Use merge commit only when you want a branch with an explicit patch tree (that doesn't contain cascading changes on the same lines) else do a squash merge or rebase merge. |
@danielbanda leaving instructions here for what to do since I can see it might not have been clear.
What you need to do is the following:
After this, the PR will just have the first commit nice and clean, with nothing else 👍 |
HI @Sergio0694, thanks to your thorough instructions I was able to rebase the PR to a single commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thank you for taking the time to properly rebase this! 😄
@danielbanda The fixes issue mentioned might be wrong, since it closed my PR! |
Closes #85
Fixed some documentation typos 😉
PR Checklist