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 hard reset origin

git hard reset
Comment

PREVIOUS NEXT
Code Example
Shell :: node sass generate css 
Shell :: how to install blackeye bash 
Shell :: kubectl top pod 
Shell :: bash get username 
Shell :: how to install atom on manjaro 
Shell :: ifconfig not found 
Shell :: git remove files from repo but not locally 
Shell :: git switch vs checkout 
Shell :: install youtube-dl ubuntu 
Shell :: folder size in linux 
Shell :: osx kill process on port 
Shell :: bash go to folder 
Shell :: github activity graph 
Shell :: ssh-add git 
Shell :: brew portkill 
Shell :: install kasm ubuntu 
Shell :: my shell bash scripting practice 
Shell :: edit file as root ubuntu 
Shell :: how to unadd gitr file 
Shell :: cancel rebase git 
Shell :: ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects 
Shell :: sudo doesnt work on windows 
Shell :: fix read only file system 
Shell :: bash while loop 
Shell :: print colored text bash 
Shell :: install nvm mac with brew 
Shell :: tsc: command not found on arch 
Shell :: change regolith terminal 
Shell :: git push with gpg key 
Shell :: get data from json array in mysql 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =