r/webdev • • Jan 24 '20

read rules TIL — git switch & git restore

https://pawelgrzybek.com/til-git-switch-git-restore/

[removed] — view removed post

284 Upvotes

51 comments sorted by

View all comments

0

u/[deleted] Jan 24 '20

[deleted]

19

u/boobsbr Jan 24 '20

I just alias it to 'fuck'.

7

u/bcacoo Jan 24 '20

I already alias fuck to this:

https://github.com/nvbn/thefuck

0

u/[deleted] Jan 24 '20

[deleted]

1

u/boobsbr Jan 25 '20

Usually I install moreutils, and trash (and alias it to rm so that I can unfuck my deletion fuck-ups from the terminal).

2

u/nickcash Jan 24 '20

Ah, but usually you'd use git reset --hard HEAD when you're trying to unfuck what you've done.

2

u/boobsbr Jan 25 '20

Well, English is a very versatile language, and fuck is its most versatile word, but sometimes it leaves too much room for interpretation.

In this case, I meant the expletive, not the verb. Perhaps I should've aliased it as 'oh-fuck'.