Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git move head to specific branch

# This will destroy any local modifications.
# Don't do it if you have uncommitted work you want to keep.
git reset --hard 0d1d7fc32

# Alternatively, if there's work to keep:
git stash
git reset --hard 0d1d7fc32
git stash pop
# This saves the modifications, then reapplies that patch after resetting.
# You could get merge conflicts if you've modified things which were
# changed since the commit you reset to.
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install portainer on raspberry pi 
Shell :: git remove staged area 
Shell :: installer microsoft teams ubuntu 
Shell :: mac see current path2 
Shell :: install kubectl windows 10 
Shell :: install nvim 
Shell :: error eacces permission denied mkdir xampp ubuntu 
Shell :: remove trailing slash from nginx 
Shell :: install solana cli 
Shell :: git check current branch 
Shell :: Error: Unable to find a match: ansible 
Shell :: tar command 
Shell :: socket install 
Shell :: git clone recursive submodule 
Shell :: How can I remove the first line of a text file using bash/sed script? 
Shell :: cmd remove directory not empty windows 
Shell :: install python 3.10 on raspberry pi 
Shell :: The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDER 
Shell :: linux terminal show processes 
Shell :: bash array forloop 
Shell :: checking git settings 
Shell :: install node package manager 
Shell :: jupyter digits 
Shell :: Managing network connections in ubuntu 
Shell :: linux install icloud 
Shell :: how to ignore folder in gitignore duplicate 
Shell :: fastlane match update certificate 
Shell :: how to delete a folder in github 
Shell :: replace tab sed 
Shell :: github checkout branch 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =