this post was submitted on 25 Oct 2023
281 points (97.6% liked)

Programmer Humor

31230 readers
1372 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS
 
top 16 comments
sorted by: hot top controversial new old
[–] aeharding 44 points 8 months ago (1 children)
[–] [email protected] 15 points 8 months ago

Mmm yes number go up.

Progress.

[–] shotgun_crab 17 points 8 months ago* (last edited 8 months ago) (1 children)

Isn't it easier to delete the release? Unless they have no permission to do it I guess

[–] [email protected] 14 points 8 months ago (1 children)

It's a bit trickier since that is a neovim plugin so a bunch of people will automatically have updated to this tag using their plugin manager. Removing it will probably just make it worse.

[–] shotgun_crab 7 points 8 months ago

I forgot the many plugin managers that download stuff directly from github. That makes way more sense.

[–] [email protected] 12 points 8 months ago (3 children)

How do you accidentally force push lol

[–] [email protected] 18 points 8 months ago (2 children)

I assume the accident was not to force push, but to the wrong branch

[–] [email protected] 12 points 8 months ago

I hope they learned the value of protecting your branches.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago) (1 children)

This is why I always git push origin +branch_name

[–] [email protected] 1 points 8 months ago* (last edited 8 months ago)

My go-to these days is to push the current branch, dynamically.
git push origin HEAD

Depending on the VC, HEAD has different prefix/suffixes to make it work.

Edit: formatting, also I never checkout master I do origin/master so I cannot even push it with this method. I think

[–] DacoTaco 7 points 8 months ago

I was wondering the same. Any branch that has any logic besides a ci build attached to it should have been force push protected by default...

[–] [email protected] 1 points 8 months ago

Git rebase makes it possible getting used to do so

[–] [email protected] 10 points 8 months ago

You guys actually release stuff?

[–] [email protected] 6 points 8 months ago

But why is it a major number?

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

How do they get the numbering system? Is it automatic somehow?

[–] herr 2 points 8 months ago

Pretty sure they just type it in manually. See named tags in git.