Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to squash commits on master

git checkout --orphan some-branch
git commit -m "First commit"
git branch -f master # move the local branch
git checkout master
git branch -d some-branch # delete the temp branch
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #squash #commits #master
ADD COMMENT
Topic
Name
1+8 =