4 comments

  • melezhik 9 hours ago ago
  • kingkongjaffa 8 hours ago ago

    When you merge request and then need to make changes, at least they way i do it is git push --force to push to overwrite the branch state on remote (gitlab/github etc.)

    I like that is keeps track of the diffs and changes for code review comment threads so you can see what changed inbetween multiple git push --forces to fix stuff.

    That struck me the other day as not a native git feature but an actual novel thing github/gitlab do.

    • melezhik 8 hours ago ago

      Usually once MR is merged , no need to change existing branch and people usually just create a new one to push more changes or I miss something ?

      • kingkongjaffa 2 hours ago ago

        > Usually once MR is merged

        No, nothing is merged yet I'm talking about during code review when changes are requested by the reviewer, you force push to overwrite your previous commits, the brand history does not know this by design in git, but gitlab/github understands this workflow and keeps track of it so a pre vs post git push --force is diffable.