Answers for "git merge all previous commits on a branch"

1

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"
Posted by: Guest on March-25-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language