Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
jeeper59682yWell, as long as you are not committing directly to master nbd. Amend the heck out of it
-
tedge3072ygit reset to previous commit, then git push -f. You could probably make a git unpush alias
-
FlyAway06222yThe same feeling when we are walking on a bridge and have to hold our phone tight so we don't throw it on the water 😅
-
I know this is a general rant and I've had this happen to me many times
but a Legit tip is to prevent involuntary commits and pushes to master by adding a /.git/hooks/pre-push and a /.git/hooks/pre-commit to your repo
Those files allow you to specify which branches (like main/master) you wanna get a warning if you try to commit or push to
Related Rants
'I don't want to push this commit yet'
Proceeds to write commit title and presses push.
'Wait, fuck ..'
random
birdbrain
push
commit