I am not the best Git user, and am having an issue whenever I create a PR. Basically, when I make a PR, I am shown a large list of all my previous commits including the one that I just committed (the one I want merged to Master branch). The flow that I do is the following:
First I fork a copy of our Master branch, and
git clone [local copy]
Then I create a remote
git remote add upstream [main repo url]
Then every time I have made changes I want to add to my PR:
git add [file1] [file2 ] ...ect
Then commit:
git commit -m 'blah blah blah'
And finally push to origin:
git push origin master
After this, I create a PR on Github, where it shows all the previous commits. Is there a way to not list all of these and only show my latest commit? It shows commits that were merged to the upstream long back and are in sync with it. It would be nice for the merger to not have to select the specific commits and just the ones listed.
Thanks!