Due to a poor branch strategy the main
branch is far behind dev
and the corresponding pull request contains over 500 commits.
In previous work I could directly push --force
into the main
branch, and therefore ignore those 500+ commits to only consider the resulting version of the code.
But now I cannot push
into main
, and therefore need to go with pull request.
¿Is there a way to discard all those 500+ commits in the pull request?
Thanks