reset

Git - Undo All Uncommitted Changes

How to undo all uncommitted changes, delete all new files and folders, reset modified files, restore deleted files and revert everything back to the last commit using git.

Remote Hard Reset of a Linux Server if Reboot Doesn’t Work

Sometimes, reboot or shutdown -r now, don’t work anymore.

That really sucks, especially if you have no access to the server room or you just don’t want to get up.

But there is another solution if your Kernel is compiled with CONFIG_MAGIC_SYSRQ (sysrq-trigger).