this post was submitted on 15 Sep 2023
715 points (97.2% liked)

Programmer Humor

19512 readers
603 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 33 points 1 year ago* (last edited 1 year ago) (10 children)

I never push as last thing in the evening. I want to sleep over it and revise in the morning. --amend crew unite

[–] [email protected] 8 points 1 year ago (2 children)

You should be pushing feature branches as you work on them, so if you have a crash or something, your work isn't lost. Builds should be triggered from pull requests on the main branch, if triggered by anything. You should never push directly to main. At least that's my preference.

[–] [email protected] 2 points 1 year ago

I make WIP branches only for that purpose, so I can push half done work and rework it the day after.

This means a lot of history changes, but only in the WIP branch.

When history is clean, I rebase the feature branch.

Is this a good practice? I never found a better way to backup partial code.

load more comments (1 replies)
load more comments (8 replies)