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 :: linux change permissions recursive only directories 
Shell :: gnome set wallpaper command line 
Shell :: Installing ionic local notification plugin 
Shell :: my ip 
Shell :: kali linux ping ip 
Shell :: install grub manually 
Shell :: linux how to make makefile 
Shell :: git logline 
Shell :: clone all github repos 
Shell :: where should gitignore file be 
Shell :: source bash_profile on startup mac 
Shell :: force docker for a clean build of an image 
Shell :: test ssh connection for github 
Shell :: fish set environment variable 
Shell :: busybox 
Shell :: deploy docker to heroku 
Shell :: ssh mac 
Shell :: print first word of each line by grep 
Shell :: create a new branch based on another branch 
Shell :: bash cut delimiter multiple spaces 
Shell :: docker build and run one command 
Shell :: git clone does not show all branches 
Shell :: how to install android sdk tools in ubuntu using command line 
Shell :: A server is already running. Check /home/mahi/Desktop/PharmaPlace/tmp/pids/server.pid. Exiting 
Shell :: conda install tabulate 
Shell :: xargs ffmpeg multiples files 
Shell :: active command line macbook developer 
Shell :: import database via power shell 
Shell :: gdb value of type is more than max-value-size 
Shell :: aws cli start crawler 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =