Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git reset hard for remote

 git reset --hard <commit-hash>
 git push -f origin master # only works for unprotected branches that allow force push
Comment

git reset hard to remote

git reset --hard origin/master; git commit -m 'reset to remote';git push --force local dev
Comment

git reset head to commit remote

 git reset --hard <commit-hash> #Please double check your commit hash
 git push -f origin master # this will force update and remove commits after this one
Comment

PREVIOUS NEXT
Code Example
Shell :: bash: lsb_release: command not found 
Shell :: how to extract tgz file in linux 
Shell :: installing xournal++ in ubuntu 
Shell :: mac os uninstall oh my zsh 
Shell :: moment js ionic 
Shell :: restart lampp command 
Shell :: install git 2 on centos 7 
Shell :: how to start apache2 server 
Shell :: install .net sdk on ubuntu 
Shell :: which user apache runs as ubntu 
Shell :: git diff lines of code 
Shell :: install scapy 
Shell :: ubuntu install libc6-i386 
Shell :: install yum terminal 
Shell :: install wkhtmltopdf mac 
Shell :: magento 2 file permissions 
Shell :: find npmrc file ubuntu 
Shell :: git how to find original branch creator 
Shell :: xampp the installer requires root privileges 
Shell :: how to kill linux screen 
Shell :: how to add remove origin url 
Shell :: zsh suggestion from history 
Shell :: script dir bash 
Shell :: is linux bad 
Shell :: yarn install uuid 
Shell :: install gdal ubuntu 
Shell :: how to install curl in centos 7 
Shell :: how to add windows to grub 2 
Shell :: rar unrar mac 
Shell :: git set upstream 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =