undo reset commit git
git reset --soft HEAD@{1} # delete the last commit keeping the changes
git reset --hard HEAD@{1} # delete the last commit removing the changes
git push --force origin master # delete the last commit also on remote branchgit reflog //to get commitID
git reset #commitIDgit revert <commitHashOfTheRevert> # locate the hash the revert was done
#this will invert the changes made in that commit
#and preserve the git historygit reset <commitId>
# Exemple
git reset 5310517
Also in C++:
- delete logs older than 7 days linux
- how to set execute permission in linux
- install libreoffice mint
- how to copy the files of a folder to another folder linux
- electron build windows exe
- how to uninitialize git
- get ubuntu version
- pyttx3
- cat meaning linux
- bash how to check free disk space in Linux
- windows powershell symlink
- ERROR 1698 (28000): Access denied for user 'root'@'localhost'
- git fatal pack has bad object at offset
- check value is number in cmd
- git how to undo a pushed commit
- https://cloud.google.com/shell/docs/using-web-preview#previewing_the_application
- linux stop running script
- git ignore permission changes
- rasp pi cmd temperature
- ubuntu 20 install quemu
- dotnet list all packages
- psycopg2 error
- download filezilla for ubuntu
- ubuntu open with software install not working