News for hackers. Stuff that matters.
Re:Thefuck – Corrects your previous console command by Detry322 on Thursday October 18, 2018 @01:57PM (#18250513)
Just hopping on this thread post for a shameless plug:

https://github.com/Detry322/git-psuh

Why make errors do the thing you want, when you can make them do things you don't want? ¯\_(ツ)_/¯

Carpenters have "measure twice, cut once", since there's risk involved with a mistake. Let's make mistakes risky.

Re:Thefuck – Corrects your previous console command by fokov on Thursday October 18, 2018 @03:09PM (#18251202)
"I've cut the board 3 times and it is still too short!"
Re:Thefuck – Corrects your previous console command by Yetanfou on Friday October 19, 2018 @03:05AM (#18254704)
I built a bathroom with a heated floor last year. For that floor I needed 42 m of heating cable. This cable is poured into the flooring screed and as such can not be spliced, it has to be in one piece.

Ir ordered 42 m and got a parcel with 18 m in the mail, apparently the person who processed the order mistook the order sequence number - 18 - for the ordered amount. I notified the supplier about this mistake, added some photo's of the cable - which is helpfully marked in meter-increments - and told them to send a new cable as I ordered 42 m.

The supplier sent 24 m of cable.

Re:Thefuck – Corrects your previous console command by jwilbs on Thursday October 18, 2018 @04:27PM (#18251818)
This genuinely made me chuckle.

That said, if mistyping ‘git push’ is a common occurrence, why not just define an alias?

Re:Thefuck – Corrects your previous console command by DeRock on Thursday October 18, 2018 @04:34PM (#18251872)
Even better, git supports correction of misspelled commands, but you have to turn it on:

    git config --global help.autocorrect 1
Although I also alias gti—>git...
Re:Thefuck – Corrects your previous console command by madcow2011 on Thursday October 18, 2018 @05:00PM (#18252066)
gti—>git...

so it's not just me then? I feel better now, thanks :)

Re:Thefuck – Corrects your previous console command by qbrass on Thursday October 18, 2018 @05:48PM (#18252445)
Re:Thefuck – Corrects your previous console command by dag11 on Thursday October 18, 2018 @02:37PM (#18250920)
Thanks! I hate it :)
Re:Thefuck – Corrects your previous console command by moate on Thursday October 18, 2018 @03:18PM (#18251284)
Spare the rod, spoil the child!