You are viewing a single thread.
View all comments View context
22 points

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

permalink
report
parent
reply
15 points

I hope they learned the value of protecting your branches.

permalink
report
parent
reply
3 points
*

This is why I always git push origin +branch_name

permalink
report
parent
reply
1 point
*

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

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 5.3K

    Monthly active users

  • 1.5K

    Posts

  • 33K

    Comments