Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #commits #github
ADD COMMENT
Topic
Name
6+7 =