Git Product home page Git Product logo

Comments (4)

cgreene avatar cgreene commented on July 17, 2024

Rebase always makes me nervous for the reasons described here: https://www.atlassian.com/git/tutorials/merging-vs-rebasing#the-golden-rule-of-rebasing

I'm happy to hear from others about their experiences!

from covid19-review.

agitter avatar agitter commented on July 17, 2024

I haven't used rebasing much in my projects because I've seen it cause confusion. I'm open to anything though. This project seems to be moving even faster with more simultaneously contributions than deep review.

Maybe @mprobson could describe the benefits he's seen on large-scale collaborations?

from covid19-review.

mprobson avatar mprobson commented on July 17, 2024

I'm one of the (many) core developers of the Charm++ Parallel Programming System (linked in case you want to take a quick look at the project). It's admittedly a very different use case (software v paper; slow v fast) but we develop our features on separate branches before merging it into the main repo via a PR that gets rebased. The big pro of rebasing is it presents a clean history of linear commits, which is good for debugging, performance regresssion analysis, etc but maybe not applicable here. I definitely understand the hesitancy (merges are basically always safe and rebases can get hairy!) since the PR's (and branches they are generated from) are 'public'. However, I don't think anyone is (or should be) basing their commits off of them and that branch will continue to exist (unless deleted by the user but it can always be restored). As a side note, I'm pretty sure this is the same model GitHub uses underneath for their web interface since it generates a branch, e.g. username-patch-01, for the new PRs. I also know there are cases where rebases aren't possible to do automatically (due to conflicts) and in those cases I think merging the changes in makes the most sense unless someone wants to fix it on the command line, which I'm happy to do. I guess all of this is to say that rebasing should be an aim here when people contribute separate changes and can automatically rebase without complex intervention but not a requirement (like it is in Charm) as to not slow us down. That's just my two cents, but y'all have much more experience steering this project at this point so I'm happy to just contribute where I can.

from covid19-review.

agitter avatar agitter commented on July 17, 2024

Thanks for the details @mprobson. I'm fairly indifferent about merge commits versus rebase for this project. Either way we'll be using branches and pull requests for the main workflow.

For deep review we used squash merges for pull requests, but I recommend not using those here. Now that GitHub supports reviewer suggestions, having a pull request reviewer get some attribution for a suggestion that is accepted is nice. I'm not sure what happens to co-authored commits when they are squashed. I'd guess the co-authorship is lost.

from covid19-review.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.