I am currently working on a small project, and I am working on getting it functional, but I question when exactly should I make commits. I usually just do it when I am done with working on it, but I know in practical projects often times commits are for one specific thing but given the project does not even work yet what exactly do I do.

  • @stinky613@lemmy.sdf.org
    link
    fedilink
    English
    310 months ago

    I believe that best practices are to commit locally whenever you want (generally any time you don’t want to lose what you’ve done so far) but then do an interactive rebase to make your commits more coherent and more encapsulated before you make a pull request to get them merged into the branch on origin