undo commit
Shell
$ git reset --hard 0ad5a7a6
// use --soft to reset as uncommitted change,
// or --hard to completely remove# KEEP CHANGES
git reset --soft HEAD~1
# REMOVE CHANGES
git reset --hard HEAD~1$ git reset --hard HEAD~1
$ git reset --soft HEAD~1
$ git reset --soft HEAD~1git reset --soft HEAD~1
Also in Shell:
- Title
- terminal delete directory not empty
- Category
- Shell
- Title
- close all localhost connections
- Category
- Shell
- Title
- How to find your ip on debian linux wsl
- Category
- Shell
- Title
- how to make a .sh file executable
- Category
- Shell
- Title
- git remove remote
- Category
- Shell
- Title
- how to link a repo to a project on github
- Category
- Shell
- Title
- how to add extension to all files terminal
- Category
- Shell
- Title
- force git to use ssh
- Category
- Shell
- Title
- show rights inside folder debian
- Category
- Shell
- Title
- delete a github repository using curl
- Category
- Shell
- Title
- kill port ubuntu
- Category
- Shell
- Title
- GVfs metadata is not supported. Fallback to TeplMetadataManager.
- Category
- Shell
- Title
- check changes after git pull
- Category
- Shell
- Title
- install bootstrap 4 npm
- Category
- Shell
- Title
- list of files in git commit
- Category
- Shell
- Title
- install signal desk
- Category
- Shell
- Title
- jscore
- Category
- Shell
- Title
- git flow
- Category
- Shell
- Title
- how to install yum uitls
- Category
- Shell
- Title
- install nvm
- Category
- Shell
- Title
- git push to branch
- Category
- Shell
- Title
- dnstwist kali linux
- Category
- Shell
- Title
- linux how to see directory data usage
- Category
- Shell
- Title
- How do I show the changes which have been staged
- Category
- Shell
- Title
- angular cli generate component
- Category
- Shell
- Title
- how to add font icon in gatsby
- Category
- Shell
- Title
- terminal how to find a directory
- Category
- Shell
- Title
- linux red hat version
- Category
- Shell
- Title
- install gui in command line linux
- Category
- Shell
- Title
- connect to git repo with ssh-rsa
- Category
- Shell
- Title
- docker build
- Category
- Shell
- Title
- install react bootstrap
- Category
- Shell
- Title
- show date linux
- Category
- Shell
- Title
- desktop trigger click bash shell ubuntu
- Category
- Shell
- Title
- foreach powershell
- Category
- Shell
- Title
- git commit please tell me who you are
- Category
- Shell
- Title
- git sync branch with master
- Category
- Shell
- Title
- how to zip a file in linux
- Category
- Shell
- Title
- delete a github repository using bash
- Category
- Shell
- Title
- find change permissions to subdirectories
- Category
- Shell
- Title
- ubuntu add user to group
- Category
- Shell
- Title
- How do I see which version of Swift I'm using
- Category
- Shell
- Title
- ignore git ignore
- Category
- Shell
- Title
- how to set date in linux
- Category
- Shell
- Title
- How to download Citrix Workspace for Ubuntu
- Category
- Shell
- Title
- git reset one file
- Category
- Shell
- Title
- install axios
- Category
- Shell
- Title
- remove git tracking
- Category
- Shell
- Title
- change user linux
- Category
- Shell
- Title
- how to open mongodb-compass
- Category
- Shell
- Title
- android_home ubuntu
- Category
- Shell
- Title
- how to uninstall react native cli globally
- Category
- Shell
- Title
- bash case statement
- Category
- Shell
- Title
- heroku and github on termi
- Category
- Shell
- Title
- loop from array bash
- Category
- Shell
- Title
- screen sharung zoom linux x11
- Category
- Shell
- Title
- linux add to path
- Category
- Shell
- Title
- ubuntu 16.04 bluetooth not detecting devices
- Category
- Shell
- Title
- gatsby starter hello world
- Category
- Shell
- Title
- Realtek RTL8812BU Network WiFi Adapter kali linux driver
- Category
- Shell
- Title
- git tag checkout
- Category
- Shell
- Title
- unzip a tar.gz file in linux
- Category
- Shell
- Title
- shell set environment variable
- Category
- Shell
- Title
- create directory linux
- Category
- Shell
- Title
- install idle on ubuntu
- Category
- Shell
- Title
- ubuntu delete a symbolic link
- Category
- Shell
- Title
- git global username --replace-all
- Category
- Shell
- Title
- how to uninstall kernel jupyter
- Category
- Shell
- Title
- ubuntu logout
- Category
- Shell
- Title
- git files changed between two commits
- Category
- Shell
- Title
- git config --global credential.helper osxkeychain
- Category
- Shell
- Title
- apt get install docker compose
- Category
- Shell
- Title
- remove .svn recursively linux
- Category
- Shell
- Title
- view memory usage linux
- Category
- Shell
- Title
- shell file in linux
- Category
- Shell
- Title
- shell script to check the output of a file
- Category
- Shell
- Title
- pyglet linux
- Category
- Shell
- Title
- convert dash to underscore windows
- Category
- Shell
- Title
- julia install linux
- Category
- Shell
- Title
- documentation gitlab ci en francais
- Category
- Shell
- Title
- composer drupal install
- Category
- Shell
- Title
- hide permission denied ~/.bash
- Category
- Shell
- Title
- Failed at the [email protected] postinstall script.
- Category
- Shell
- Title
- powershell check if software is installed
- Category
- Shell
- Title
- does Ubuntu MATE have ssh
- Category
- Shell
- Title
- git delete repository command line
- Category
- Shell
- Title
- undercover mode kali
- Category
- Shell
- Title
- get local node version
- Category
- Shell
- Title
- powershell get arguments
- Category
- Shell
- Title
- connection failed blueman.bluez.errors.dbusfailederror protocol not available
- Category
- Shell
- Title
- bash endless loop
- Category
- Shell
- Title
- install rbenv
- Category
- Shell
- Title
- reset branch on local git
- Category
- Shell
- Title
- intel pinning threads
- Category
- Shell
- Title
- delete local branch git
- Category
- Shell
- Title
- run specific script with an other user linux
- Category
- Shell
- Title
- install pipenv in ubuntu
- Category
- Shell
- Title
- git SSL certificate problem: certificate has expired
- Category
- Shell
- Title
- cosmicjs
- Category
- Shell
- Title
- laravel generate mailable
- Category
- Shell