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

I hope they learned the value of protecting your branches.

@Redscare867@lemmy.ml
link
fedilink
English
3
edit-2
1Y

This is why I always git push origin +branch_name

@forgeddit@sopuli.xyz
link
fedilink
1
edit-2
1Y

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

Create a 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.
  • 1 user online
  • 120 users / day
  • 257 users / week
  • 744 users / month
  • 3.72K users / 6 months
  • 1 subscriber
  • 1.47K Posts
  • 32.2K Comments
  • Modlog