git undo last commit
Shell
$ git reset --soft HEAD~1
git reset --soft HEAD~1# KEEP CHANGES
git reset --soft HEAD~1
# REMOVE CHANGES
git reset --hard HEAD~1$ git reset --soft HEAD~1$ git reset --hard 0ad5a7a6
// use --soft to reset as uncommitted change,
// or --hard to completely remove
Also in Shell:
- Title
- dos findstr with plus
- Category
- Shell
- Title
- linux view services
- Category
- Shell
- Title
- open pdf command line linux
- Category
- Shell
- Title
- bash for loop
- Category
- Shell
- Title
- powershell search array
- Category
- Shell
- Title
- linux command to list directory size
- Category
- Shell
- Title
- ubuntu stop process on port
- Category
- Shell
- Title
- install vuex
- Category
- Shell
- Title
- bash call another script relative to current script
- Category
- Shell
- Title
- install curl ubuntu
- Category
- Shell
- Title
- read file using shell script
- Category
- Shell
- Title
- yarn ubuntu
- Category
- Shell
- Title
- vim compare 2 files
- Category
- Shell
- Title
- How do I see which version of Swift I'm using
- Category
- Shell
- Title
- kill all python processes ubuntu
- Category
- Shell
- Title
- deletar branch
- Category
- Shell
- Title
- combine strings bash
- Category
- Shell
- Title
- powershell get arguments
- Category
- Shell
- Title
- git commit all
- Category
- Shell
- Title
- ubuntu open directory from terminal
- Category
- Shell
- Title
- ubuntu install composer
- Category
- Shell
- Title
- bash write
- Category
- Shell
- Title
- delete git origin
- Category
- Shell
- Title
- change remote to use ssh git command
- Category
- Shell
- Title
- git remove tag from remote
- Category
- Shell
- Title
- vagrant ubuntu 16.04
- Category
- Shell
- Title
- npm install express-handlebars
- Category
- Shell
- Title
- install seaborn
- Category
- Shell
- Title
- git show staged files
- Category
- Shell
- Title
- upgrade node version
- Category
- Shell
- Title
- how to install nvm in mac
- Category
- Shell
- Title
- edit default port for linux server
- Category
- Shell
- Title
- Realtek RTL8812BU Network WiFi Adapter kali linux driver
- Category
- Shell
- Title
- docker build
- Category
- Shell
- Title
- install docker on ubuntu 18.04
- Category
- Shell
- Title
- kernel headers were not found vmware kali linux
- Category
- Shell
- Title
- conda install from yaml
- Category
- Shell
- Title
- conda install mmcv
- Category
- Shell
- Title
- ubuntu activate venv
- Category
- Shell
- Title
- calcul md5 fichier linux
- Category
- Shell
- Title
- install itertools
- Category
- Shell
- Title
- install x centos 7
- Category
- Shell
- Title
- install sailsjs
- Category
- Shell
- Title
- apache virtual host
- Category
- Shell
- Title
- shell count number of lines
- Category
- Shell
- Title
- boolean constants in bash
- Category
- Shell
- Title
- cosmicjs
- Category
- Shell
- Title
- npm run custom script
- Category
- Shell
- Title
- how to grep if the first letter is a character not a number
- Category
- Shell
- Title
- linux grep
- Category
- Shell
- Title
- how to set up a git repository locally
- Category
- Shell
- Title
- install jupyter homebrew
- Category
- Shell
- Title
- chocolatey installation
- Category
- Shell
- Title
- install webpack
- Category
- Shell
- Title
- xampp run in ubuntu
- Category
- Shell
- Title
- como agregar angular material al proyecto
- Category
- Shell
- Title
- package 'mana-toolkit' has no installation candidate
- Category
- Shell
- Title
- git add commit in one command
- Category
- Shell
- Title
- matrix synapse install
- Category
- Shell
- Title
- why all git pull create merge commit
- Category
- Shell
- Title
- linux loop over all arguments one by one
- Category
- Shell
- Title
- service dead but pid file exists
- Category
- Shell
- Title
- netstat check port
- Category
- Shell
- Title
- git how to add remote
- Category
- Shell
- Title
- linux give full permission to directory
- Category
- Shell
- Title
- how to pip install in folder
- Category
- Shell
- Title
- git command autocomplete
- Category
- Shell
- Title
- linux rsync example
- Category
- Shell
- Title
- recover a merged commit git
- Category
- Shell
- Title
- linux get current user
- Category
- Shell
- Title
- debian 10 buster mysql
- Category
- Shell
- Title
- ubuntu install sfml
- Category
- Shell
- Title
- run powershell script from wsl bash
- Category
- Shell
- Title
- how to download youtube video in linux
- Category
- Shell
- Title
- install chromedriver linux command line
- Category
- Shell
- Title
- linux generate file
- Category
- Shell
- Title
- check installed packages apt-get
- Category
- Shell
- Title
- git go to previous branch
- Category
- Shell
- Title
- linux command for file size
- Category
- Shell
- Title
- linux remove root access
- Category
- Shell
- Title
- linux create user
- Category
- Shell
- Title
- visual studio code ubuntu
- Category
- Shell
- Title
- install phpmyadmin ubuntu 18.04
- Category
- Shell
- Title
- revert git add
- Category
- Shell
- Title
- cmd prompt format
- Category
- Shell
- Title
- linux screen brightness command line
- Category
- Shell
- Title
- git reset origin
- Category
- Shell
- Title
- how to reset git branch to a certain commit.
- Category
- Shell
- Title
- choco list installed
- Category
- Shell
- Title
- git merge branch
- Category
- Shell
- Title
- check os shell liunx cygwin darwin
- Category
- Shell
- Title
- how to set date in linux
- Category
- Shell
- Title
- install flask
- Category
- Shell
- Title
- install automapper asp.net core mvc
- Category
- Shell
- Title
- i dont have pip, hoow to install pandas
- Category
- Shell
- Title
- delete local branch git
- Category
- Shell
- Title
- ssh ubuntu
- Category
- Shell
- Title
- linux os upgrade
- Category
- Shell
- Title
- install opencl library
- Category
- Shell
- Title
- desktop trigger click bash shell ubuntu
- Category
- Shell