I made the mistake of making too many small commits after committing big changes and then realizing I missed something minor when comparing changes to master in a pull request.
How could I go about removing the previous commits I've made on my branch, and then make just one comprehensive commit with all of the changes I've made? I don't want to revert the code on my local machine to a previous commit.
$ git rebase -i <branch>
will this squash only commits in my branch? I don't want to squash any commits in master.