Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

git delete commits from remote

git reset --hard <last_working_commit_id>
  
So we must not reset to the commit_id that we don't want.

Then sure, we must push to remote branch:

git push --force
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #delete #commits #remote
ADD COMMENT
Topic
Name
6+1 =