this post was submitted on 04 Apr 2024
1118 points (98.1% liked)

Programmer Humor

22837 readers
191 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 2 years ago
MODERATORS
 
(page 3) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 1 year ago (2 children)

Rebase feature branch, merge commit into main (NO SQUASH).

load more comments (2 replies)
[–] [email protected] 7 points 1 year ago* (last edited 1 year ago) (1 children)

I personally prefer "git off my lawn"

load more comments (1 replies)
[–] [email protected] 7 points 1 year ago

Fuck a merge commit! Rebase ervray day bay bayyy.

[–] [email protected] 10 points 1 year ago (1 children)
[–] [email protected] 4 points 1 year ago

git config --global merge.ff no

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

ITT: people who have no idea how rebasing works.

[–] [email protected] 30 points 1 year ago (1 children)
[–] [email protected] 11 points 1 year ago (10 children)

No doubt. git rebase is like a very sharp knife. In the right hands, it can accomplish great things, but in the wrong hands, it can also spell disaster.

As someone who HAS used it a fair amount, I generally don't even recommend it to people unless they're already VERY comfortable with the rest of git and ideally have some sense of how it works internally.

load more comments (10 replies)
[–] [email protected] 9 points 1 year ago* (last edited 1 year ago) (1 children)

Heres my based af workflow:

git checkout -b feature-branch

rebase on top of dev whilst working locally

git rebase origin/dev-branch && git push -f


if i need to fix conflicts with dev-branch during a PR

git merge origin/dev

load more comments (1 replies)
[–] [email protected] 7 points 1 year ago (1 children)

git rebase is only for terrorists. 🥸

Also for me when I’ve been drinking and committed some really stupid shit into the repo. No one needs to know what I really think of my team members.

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

Yeah totally merge everything, people like a good spaghetti salad.

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

spaghetti salad

Found the German :D

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

Daily circlejerk

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

Did she just tell people up git good?

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

I know how to use git pull, git push, git commit, git status and git add *. I don't even know how git commit and git push works I just know you run them in that order. Whenever I break everything I give up and go outside.

load more comments
view more: ‹ prev next ›