• expr@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    Pretty much everything that can act as a git remote (GitHub, gitlab, etc.) records the activity on a branch and makes it easy to see what the commit sha was before a force push.

    But it’s a pretty moot point since no one that argues in favor of rebasing is suggesting you use it on shared branches. That’s not what it’s for. It’s for your own feature branches as you work, in which case there is indeed very little risk of any kind of loss.

    • aubeynarf@lemmynsfw.com
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      7 months ago

      If “we work in a way that only one person can commit to a feature”, you may be missing the point of collaborative distributed development.