Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

git merge all previous commits on a branch

git checkout yourBranch
// change master to whatever the base branch is.
git reset $(git merge-base master $(git branch --show-current))
git add -A
git commit -m "one commit on yourBranch"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #merge #previous #commits #branch
ADD COMMENT
Topic
Name
4+2 =