# KEEP CHANGES
git reset --soft HEAD~1
# REMOVE CHANGES
git reset --hard HEAD~1
use "git restore <file>..." to discard changes in working directory
use "git restore --staged <file>..." to unstage
Code Example |
---|
Shell :: .m2 folder in unix |
Shell :: run command every hour linux |
Shell :: docker container logs host path |
Shell :: update cordov ios |
Shell :: ansible playbook to set passwordless sudo |
Shell :: open command linux |
Shell :: git add and commit in one command |
Shell :: linux time now command |
Shell :: zsh terminal |
Shell :: generate zip file terminal |
Shell :: git ultiple branch delete |
Shell :: grep pattern options |
Shell :: helm commands |
Shell :: deploy to firebase using trivis |
Shell :: |
:: mysql connect another port |
Shell :: powershell import-certificate trusted publisher |
Shell :: git push specific branch |
Shell :: docker gpio |
Shell :: how to save powershell config |
Shell :: $(cat <<EOF |
Shell :: ffmpeg denoise audio |
Shell :: jq list top nodes |
Shell :: git update from another branch |
Shell :: unzip a file terminal |
Shell :: laravel github |
Shell :: get date windows batch |
:: dir command windows |
Shell :: |
Shell :: sed replace into new file |