Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to delete commits on github

git reset --hard 71c27777543ccfcb0376dcdd8f6777df055ef479
git push --force
Comment

remove commits from github

git clone 'VerybadRepo.git'
cd VeryBadRepo.git
git log
(find and copy "commit id"  )
git rebase -i "commit id"
remove line with unwanted commits ; save and close editor
git  push -f origin master/main

Comment

remove commit from github

git reset -- MAIN^
git reset -- MAIN^2 (reset last 2 commits)
(increase number for number of commits you want
to delete from your local repo, before youve pushed)
Comment

PREVIOUS NEXT
Code Example
Shell :: linux path environment variable 
Shell :: npmrc file location windows 
Shell :: ssh use key file 
Shell :: bash tab completion cycle 
Shell :: check packages in macos 
Shell :: gitignore all log files 
Shell :: how to make a new branch git 
Shell :: bash for loop string array 
Shell :: updating vscode on ubuntu 
Shell :: hugo build 
Shell :: kill port 3000 ubuntu 
Shell :: helm repo list charts 
Shell :: install bootstrap in angular 9 
Shell :: Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:783 (propagating) 
Shell :: simple while loop program in shell script 
Shell :: edit default port for linux server 
Shell :: find text pattern in file linux 
Shell :: how to remove all vagrant vms 
Shell :: git remove file from staging 
Shell :: uvicorn ERROR: [Errno 98] Address already in use 
Shell :: yarn install netlify 
Shell :: kill process in windows 
Shell :: pacman uninstall 
Shell :: center table markdown github 
Shell :: remove unused images docker manually version 1.12.6 
Shell :: adb install apk 
Shell :: powershell merge multiple text files 
Shell :: git how to undo a pushed commit 
Shell :: tkcalendar install 
Shell :: reload ssh agent 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =