When I type git log, I only get the last 4 commits which came after my last push. I can squash these but the problem is that I have had multiple pushes for this pull request, each with multiple commits. I need to somehow access all of these commits and squash them into one commit. This is on BitBucket but I would prefer the terminal commands.
Asked
Active
Viewed 102 times
1 Answers
0
You could squash all commits of a PR branch, then force push that branch.
But:
You can squash when merging your PR. That avoids having to do any local operation.
That feature is available on:
See more at "Why You Should Care About Squash and Merge in Git"

VonC
- 1,262,500
- 529
- 4,410
- 5,250