Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

github cancel last push

# to undo a git push
git push -f origin HEAD^:master

# to get to previous commit (preserves working tree)
git reset --soft HEAD

# to get back to previous commit (you'll lose working tree)
git reset --hard HEAD^
Comment

how to delete last push github

# to undo a git push
git push -f origin HEAD^:master

# to get to previous commit (preserves working tree)
gitgit push -f reset --soft HEAD

# to get back to previous commit (you'll lose working tree)
git reset --hard HEAD^
Comment

PREVIOUS NEXT
Code Example
Shell :: password generator bash 
Shell :: android sdk ubuntu 
Shell :: x11 development libraries 
Shell :: conda command to install folium 
Shell :: update submodule 
Shell :: remove file from terminal ubuntu 
Shell :: docker install python 
Shell :: unix terminal search inside file 
Shell :: how to install tesseract in other language in linux 
Shell :: ionic change app icon 
Shell :: installer lamp ubuntui 
Shell :: how to start xammp on linux 
Shell :: wslconfig example 
Shell :: how to restart apache ubuntu 
Shell :: /gi regex 
Shell :: linux script to clean up log files in /var/log 
Shell :: download brave linux 
Shell :: git pull --tags origin main remote: Repository not found. 
Shell :: github ssh key 
Shell :: git stash pop single file 
Shell :: how to remove blank lines in bash 
Shell :: laravel version global upgrade 
Shell :: installer microsoft teams ubuntu 
Shell :: flush the port 3001 
Shell :: shell remove file 
Shell :: tar command 
Shell :: git clone repository 
Shell :: delete command in linux 
Shell :: gitlab server certificate verification failed 
Shell :: remove yum package 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =