Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

squash remote commits

git reset --soft HEAD~2
# 2 being the 2 most recent commits

git add .
git commit -m "Some commit message"
git push -f
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #squash #remote #commits
ADD COMMENT
Topic
Name
2+5 =