7

We've all been there before mastering git commit --amend, rebase, and squash

Comments
  • 1
    Sorry ,I use the GUI.
  • 3
    If it's a private repo, I don't care about making the commit history look nice. It'll be full of commits like "I really fixed it this time for real I swear" and I don't bother using amend or squash or anything.
  • 0
    That's why I love to use UI tools in 2022
  • 1
    @EmberQuill I just inherited a project where a guy treated main repo like this.
  • 1
    That's what I usually do with my own PR if I miss someting

    `git commit --amend --no-edit`

    Grouping modifications in one single commit helps other people reading the PR on Github

    Some people are afraid to use it because then you need to git push with force... but guys please... it's your own branch!!!
Add Comment