this post was submitted on 25 Oct 2023
296 points (97.7% liked)

Programmer Humor

32410 readers
265 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 16 comments
sorted by: hot top controversial new old
[–] [email protected] 45 points 1 year ago (1 children)
[–] [email protected] 16 points 1 year ago

Mmm yes number go up.

Progress.

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

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

[–] [email protected] 16 points 1 year 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.

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

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

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

How do you accidentally force push lol

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

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

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

I hope they learned the value of protecting your branches.

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

This is why I always git push origin +branch_name

[–] [email protected] 1 points 1 year ago* (last edited 1 year 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

[–] [email protected] 8 points 1 year 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 1 year ago

Git rebase makes it possible getting used to do so

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

You guys actually release stuff?

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

But why is it a major number?

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

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

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

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