Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git undo commit keep changes

#windows
git reset --soft HEAD~1
Comment

undo last commit but keep changes

git reset @~
Comment

git revert commit but keep changes

git reset HEAD^
Comment

undo git commit and keep changes

git reset HEAD^
git reset
Comment

PREVIOUS NEXT
Code Example
Shell :: increment variable bash 
Shell :: mongodb server stop command in kali linux 
Shell :: see number of documents in mongodb collection 
Shell :: CommandNotFoundError: Your shell has not been properly 
Shell :: update metsploit kali linux 
Shell :: how to delete a non empty directory in linux 
Shell :: pgadmin4 container 
Shell :: install taggit 
Shell :: jq to csv 
Shell :: default parameter value in bash 
Shell :: ffmpeg add two videos together 
Shell :: how to concat pdf linux 
Shell :: An error occurred while running subprocess capacitor. 
Shell :: deploy netlify angular 
Shell :: how to exit vim 
Shell :: ubuntu 20 install quemu 
Shell :: git delete unstaged files 
Shell :: how to ping in cmd 
Shell :: git amend commit message after push 
Shell :: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 
Shell :: mac address windows command 
Shell :: install alacritty ubuntu 
Shell :: One command to create a directory and file inside it linux command 
Shell :: delete all files with specific name ubuntu 
Shell :: linux remove last n lines from file 
Shell :: ionic capacitor v3 add android 
Shell :: get wsl version 
Shell :: how to check laravel installer version 
Shell :: ubuntu ram type 
Shell :: remove git from project in windows 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =