# 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 :: git clone and create directory |
Shell :: linux get uuid of disk |
Shell :: diskpart |
Shell :: create next app with jest |
Shell :: rescale kubectl |
Shell :: how to overwrite main branch git |
Shell :: winscp zip command |
Shell :: zip exclude directory |
Shell :: linux kali download |
Shell :: mount is fstab |
Shell :: grpc client |
Shell :: winget github |
Shell :: merge master into feature branch |
Shell :: dir in file txt |
Shell :: git subtree |
Shell :: mac make bootable usb |