undo last commit
Shell
$ git reset --soft HEAD~1
git reset --soft HEAD~1$ git reset --soft HEAD~1$ git reset --hard HEAD~1
git reset --hard HEAD~1# KEEP CHANGES
git reset --soft HEAD~1
# REMOVE CHANGES
git reset --hard HEAD~1
Also in Shell:
- Title
- install node 12 linux terminal w10
- Category
- Shell
- Title
- find text in linux file
- Category
- Shell
- Title
- scp download file
- Category
- Shell
- Title
- git command to create a branch
- Category
- Shell
- Title
- How do I show the changes which have been staged
- Category
- Shell
- Title
- linux change file name
- Category
- Shell
- Title
- how to install node modules python
- Category
- Shell
- Title
- bash measure execution time
- Category
- Shell
- Title
- install opencl library
- Category
- Shell
- Title
- netstat command in linux
- Category
- Shell
- Title
- pygame not installing in ubuntu 20.04
- Category
- Shell
- Title
- jq filter array
- Category
- Shell
- Title
- conda install mmcv
- Category
- Shell
- Title
- command to install react cli
- Category
- Shell
- Title
- list user groups linux
- Category
- Shell
- Title
- close chrome tab from command line ubuntu
- Category
- Shell
- Title
- .gitignore
- Category
- Shell
- Title
- ubuntu ram type
- Category
- Shell
- Title
- react native install
- Category
- Shell
- Title
- gatsby image plugin
- Category
- Shell
- Title
- linux list
- Category
- Shell
- Title
- linux generate file
- Category
- Shell
- Title
- php artisan doctrine migrations add all
- Category
- Shell
- Title
- install redux
- Category
- Shell
- Title
- git cancel last commit
- Category
- Shell
- Title
- git flow
- Category
- Shell
- Title
- scheduler ubuntu cmd
- Category
- Shell
- Title
- linux select pages from pdf
- Category
- Shell
- Title
- connection failed blueman.bluez.errors.dbusfailederror protocol not available
- Category
- Shell
- Title
- find text in any file linux
- Category
- Shell
- Title
- vagrant ubuntu 16.04
- Category
- Shell
- Title
- documentation gitlab ci en francais
- Category
- Shell
- Title
- install gui in command line linux
- Category
- Shell
- Title
- find exclude hidden files
- Category
- Shell
- Title
- how to install and update git mac terminal
- Category
- Shell
- Title
- linux inhalt einer textdatei anzeigen
- Category
- Shell
- Title
- github show files changed git log
- Category
- Shell
- Title
- release tag github
- Category
- Shell
- Title
- git reset
- Category
- Shell
- Title
- configure samba on RPI
- Category
- Shell
- Title
- rename file linux
- Category
- Shell
- Title
- bash append file
- Category
- Shell
- Title
- how to restart docker linux
- Category
- Shell
- Title
- upgrade yarn version
- Category
- Shell
- Title
- webpack install
- Category
- Shell
- Title
- how to move file in directory in linux
- Category
- Shell
- Title
- what does git fetch do
- Category
- Shell
- Title
- git reset origin
- Category
- Shell
- Title
- force git to use ssh
- Category
- Shell
- Title
- how to undo a git stash
- Category
- Shell
- Title
- Macbook git user config global
- Category
- Shell
- Title
- git remove remote
- Category
- Shell
- Title
- display folder of path linux bashrc
- Category
- Shell
- Title
- whats up with docker compose and orphan containers
- Category
- Shell
- Title
- create github repo with bash
- Category
- Shell
- Title
- git sync branch with master
- Category
- Shell
- Title
- windows subsystem for linux optional component is not enabled. please enable it and try again
- Category
- Shell
- Title
- add alias fish shell
- Category
- Shell
- Title
- linux os upgrade
- Category
- Shell
- Title
- fraction simplifier
- Category
- Shell
- Title
- check git version
- Category
- Shell
- Title
- avalible ios simulators
- Category
- Shell
- Title
- how to make a .sh file executable
- Category
- Shell
- Title
- git reset keep changes
- Category
- Shell
- Title
- git push
- Category
- Shell
- Title
- particular screenshot in ubuntu
- Category
- Shell
- Title
- how to fix libffi missing in macos
- Category
- Shell
- Title
- git show stashes
- Category
- Shell
- Title
- git log display files changed
- Category
- Shell
- Title
- docker run command on container
- Category
- Shell
- Title
- check ram memory usage linux
- Category
- Shell
- Title
- git init at wrong folder
- Category
- Shell
- Title
- stop docker container
- Category
- Shell
- Title
- fcm post example curl
- Category
- Shell
- Title
- timedatectl
- Category
- Shell
- Title
- delete git tag remote
- Category
- Shell
- Title
- shell copy
- Category
- Shell
- Title
- decompress tar.gz
- Category
- Shell
- Title
- service dead but pid file exists
- Category
- Shell
- Title
- snap store android studio
- Category
- Shell
- Title
- remove git tag
- Category
- Shell
- Title
- chocolatey installation
- Category
- Shell
- Title
- revert git add
- Category
- Shell
- Title
- obs
- Category
- Shell
- Title
- how to run a train animation in linux terminal
- Category
- Shell
- Title
- What debian version do i use
- Category
- Shell
- Title
- npm install bootstrap
- Category
- Shell
- Title
- git grep across all branches
- Category
- Shell
- Title
- linux download ftp get all files and folders
- Category
- Shell
- Title
- rename remote branch in git
- Category
- Shell
- Title
- shell hide tab
- Category
- Shell
- Title
- laravel create controller
- Category
- Shell
- Title
- apache ubuntu Generate CSR stack overflow
- Category
- Shell
- Title
- linux command to list directory size
- Category
- Shell
- Title
- set git origin
- Category
- Shell
- Title
- how to download with wget
- Category
- Shell
- Title
- linux mesuare request time http
- Category
- Shell
- Title
- pycharm install face_recognition
- Category
- Shell
- Title
- uid : unable to do port forwarding: socat not found
- Category
- Shell
- Title
- powershell search array
- Category
- Shell