Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git reset to commit

# reset to specefic commit
git reset --hard <commit id>

# to go back one step 
git reset --hard HEAD~1

# note: use --soft to keep file changes
Comment

git reset initial commit

git update-ref -d HEAD
Comment

reset to commit

# rollback to commit state
git revert --no-commit 0766c053..HEAD
git commit
Comment

reset to commit

# This will detach your HEAD, that is, leave you with no branch checked out:
git checkout 0d1d7fc32
Comment

PREVIOUS NEXT
Code Example
Shell :: how to remove git commit history 
Shell :: how to run power shell script 
Shell :: vim exit 
Shell :: not null check in powershell variable 
Shell :: powershell replace and rename file name 
Shell :: bash sed with variable 
Shell :: wsl2 vs virtualbox performance 
Shell :: search tag git 
Shell :: tcpdump listen url 
Shell :: vlc doesnt open after install ubuntu 
Shell :: download kali linux iso file 64 bit 
Shell :: install node and npm ubuntu 
Shell :: how to install kubectl in ubuntu 
Shell :: permission denied /dev/ttyusb0 
Shell :: generate git ssh key 
Shell :: install anbox terminal 
Shell :: how to delete evicted pod in kubernetes: 
Shell :: remove all files matching a pattern in subdirectories 
Shell :: git commit specific files 
Shell :: stacer download ubuntu 
Shell :: running localhost check in linux terminal 
Shell :: infinite-react-carousel install 
Shell :: nasm compile windows 64 
Shell :: redis download 
Shell :: minishift admin-user addon 
Shell :: install sublime text on ubuntu 20.04 
Shell :: tar exclude multiple directories 
Shell :: install express 
Shell :: debian ssh authorized_keys 
Shell :: uninstall cinnamon 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =