Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

make current commit head

git checkout <branch-to-modify-head>
git reset --hard <commit-hash-id-to-put-as-head>
git push -f
Comment

make current commit head

git reset --hard <commit-SHA>
git push origin HEAD:<name-of-remote-branch>
Comment

make current commit head

git revert commit-id
Comment

PREVIOUS NEXT
Code Example
Shell :: tensorflow docker hub 
Shell :: how to open teminal pycharm 
Shell :: install nix macos 
Shell :: list number of files in each folder linux 
Shell :: install polar linux 
Shell :: remove all branch local git 
Shell :: install package in docker 
Shell :: git commit specific files 
Shell :: docker compose stop and start only specific 
Shell :: git how to see changes made by a commit 
Shell :: setup systemctl redis 
Shell :: boost volume in ubuntu 18.04 
Shell :: chmod add execute permission to useer 
Shell :: port forward kubernetes 
Shell :: how to kill all emulator 
Shell :: grep in windows 
Shell :: pm2 logs log time 
Shell :: uninstall utorrent buntu 
Shell :: $$ in shell script 
Shell :: rstudio find out if package is installed 
Shell :: storage setup in termux 
Shell :: linux groups 
Shell :: pip remove package 
Shell :: how to run code from github 
Shell :: aws cli 
Shell :: aos animate install 
Shell :: git add new origin 
Shell :: uninstall kde 
Shell :: macos netcat start listening 
Shell :: sudo rmdir recursive 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =