I have done some coding on Github recently and fixing an issue for the Prettier repository. However, I forgot to create a branch for my changes thus meaning that all my changes happened on the fork of my master branch. After the pull request was merged, I have a notice left that my branch is ahead of the master branch so whenever I open a pull request, it has a bunch of excess commits that I do not need. Does anyone know how to remove these commits?
Asked
Active
Viewed 14 times
0
-
This solved it -> https://stackoverflow.com/questions/29049650/github-fork-your-branch-is-5-commits-ahead-how-to-clean-this-without-pushing/29049698#29049698 – Harry_Hopkinson Mar 25 '22 at 20:52