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 :: force delete pod kubernetes 
Shell :: remove notebook kernel 
Shell :: how to install rich in python 
Shell :: python install scikit learn 
Shell :: kill all ports mac 
Shell :: how to open mongodb-compass 
Shell :: taskkill in cmd 
Shell :: bash print array 
Shell :: bash delete all files of type recursively 
Shell :: ubuntu macbook camera 
Shell :: linux get docker compose logs 
Shell :: testresources install 
Shell :: linux diff two folder recursively 
Shell :: install ext-soap 
Shell :: fish disable welcome message 
Shell :: sudo command not found 
Shell :: linux get partition list 
Shell :: remove everything in folder linux 
Shell :: how to create tar in unix 
Shell :: batch directory 
Shell :: no build file in linux headers 
Shell :: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. plt.show() 
Shell :: install virtualmin 
Shell :: install cocoapods 
Shell :: github epitech 
Shell :: set selinux centos 
Shell :: gdate mac 
Shell :: kill port in mac terminal 
Shell :: snap install docker 
Shell :: How to create a new repository on the command line. 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =