Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git remove las remotet commit

git reset HEAD^ # remove commit locally
git push origin +HEAD # force-push the new HEAD commit
Comment

delete last commit from remote repo

git reset HEAD^ --hard
git push <<remote>> -f
Comment

git delete last commit in remote

1
$git rebase -i HEAD~2
Comment

remove last commit from remote

git push origin +HEAD^:<name of your branch, most likely 'master'>
Comment

PREVIOUS NEXT
Code Example
Shell :: update & upgrade Fedora 
Shell :: fatal error: portaudio.h: No such file or directory 
Shell :: awk print first column 
Shell :: git reinitialized existing git repository 
Shell :: docker remove all containers 
Shell :: find start up folder 
Shell :: how change remote origin git 
Shell :: install kazam ubuntu 20.04 
Shell :: install material ui icons 
Shell :: fatal: unable to access ': OpenSSL SSL_connect: Connection was reset in connection to github.com:443 
Shell :: set username git 
Shell :: unistall pods 
Shell :: linux restart command 
Shell :: install composer ubuntu 
Shell :: the remote end hung up unexpectedly fatal: 
Shell :: composer command not found ubuntu 
Shell :: jupyterlab installation 
Shell :: install pygame 
Shell :: git config all users 
Shell :: Error: Unable to resolve module `react-native-screens` from `node_modules/@react-navigation/bottom-tabs/src/views/BottomTabView.tsx`: react-native-screens could not be found within the project. 
Shell :: add to docker group 
Shell :: install adb mac os 
Shell :: git name change mac 
Shell :: how to change gopath 
Shell :: install intel graphics driver ubuntu 
Shell :: yarn run ios device 
Shell :: find which service is using port 
Shell :: if argument supplied bash 
Shell :: is firewall running centos 7 
Shell :: install .deb ubuntu 20.04 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =