32

Do you guys commit after your code works or when the day is over?

Comments
  • 3
    Which ever comes first
  • 13
    No. Atomic commits.

    One commit should contain a very small feature. That way it's easy to identify and revoke a feature.

    Mine are usually a few hours apart.
  • 2
    I commit often to branches and squash commits into meaningful ones before merging.
  • 0
    @hashedram What if you make core data structure changes?
  • 1
    @raldo94 same. Atomic commits every few hours, on a different fork. Merge latet
  • 2
    I don't commit... to relationships
  • 2
    @Floydian I'll write you down on the list
  • 1
    @Floydian up to a lifetime
  • 2
    Both. And sometimes even when the code doesn't work.
  • 2
    @Floydian aww :/ I should warn people that I'm known as heartbreaker
  • 1
    I'm still new to git, but I try to commit for every change I make. I find it easier to track on what I did wrong at a later date.
  • 2
    each piece/feature that works, as soon as it works and can be commited as a logical whole.
    the more often you commit, the less merge trouble you get.
  • 5
    I instantly commit whenever my commit-alarm rings, no matter what I'm doing. This sometimes causes me to submit unfini
  • 0
    After it works
  • 0
    usually when it works, but if I have other obligations after work I'll move it to a branch prefixed with "WIP-" for "work in progress"; we have CI configured not to run on such branches.
  • 1
    When I've had progress where I'd like to keep its state, but not commit to keeping it as such, STASH!
    When it works and I'm comfortable with how it's working and ready to move to another experimental upgrade, COMMIT!
    When something isn't working and it's a recent action, BLAME ANOTHER DEV!

    ... I'm the only dev on my team... EVERYTHING IS OK!
  • 0
    Well played! 🙌 @wizzzard
Add Comment