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 can we reset a new branch to a specific commit

git reset --hard cedc856
git push --force origin master
Comment

PREVIOUS NEXT
Code Example
Shell :: git remove vendor folder from remote 
Shell :: how to exit root user in linux 
Shell :: express application generator 
Shell :: flutter build apk github actions 
Shell :: mariadb delete database 
Shell :: laravel install valet 
Shell :: mac tftp server directory 
Shell :: install newman-reporter-htmlextra 
Shell :: run index.js 
Shell :: run shell script linux 
Shell :: create vue app locally 
Shell :: create github repo with curl 
Shell :: git bad object 
Shell :: docker save to file 
Shell :: get shared mailbox powershell exchange 2010 
Shell :: path to flutter linux 
Shell :: how to upgrade package yarn global 
Shell :: deploy on heroku 
Shell :: Install SSSM Agent on Amazon Linux 2 
Shell :: git push f head 
Shell :: windows openssh passwordless login 
Shell :: squash commits git 
Shell :: powershell redirect output to null 
Shell :: how to close port in linux 
Shell :: get from match to end of file 
Shell :: npm install web3 vue 
Shell :: doe snot appear to be a git repository 
Shell :: how to edit old commit message in git 
Shell :: install brave browser download 
Shell :: command to select a word in vim 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =