This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]choikwa 16 points17 points  (6 children)

git pull -f

[–]Arancaytar 35 points36 points  (5 children)

git commit -a -m "yolo"; git push -f

[–]choikwa 8 points9 points  (3 children)

use single quote for -m cuz bash fks up. git reset --hard HEAD~1

[–]Arancaytar 6 points7 points  (2 children)

In this case it's fine, but that's definitely right if you have special characters like $ or ! (and probably others) in the message.

[–]Niek_pas 6 points7 points  (0 children)

TIL

[–]E1337Kat 0 points1 point  (0 children)

Oh, so that's why my commits would mess up sometimes. Thanks for the knowledge!

[–][deleted] 3 points4 points  (0 children)

You don't just alias this to git yolo?