I have read a lot of questions and answers which could be related to my question, but I can't find an answer. Maybe because I'm not experienced git user. Then I'm sorry and would be grateful for links to answers.
There is a main repo and I forked it to my own. Then I have cloned from my own repo to my own machine and I work on my machine, then I push changes to my repo and create PR to main repo. This is a flow.
On the beginning I have created a new file in code (conf file) and created a commit not related to any branch. I have commited it to my repo and forgot about it. Then I have created new branch, made changes and so on. On the end of my work I have made fetch and pull --rebase from main repo and having everything most up to date I have made a commit to my repo. Then I've push new branch to my repo on git hub.
When I have checked files and changes before PR I have noticed, that my first commit with config file is added to this branch. Guys from my work have told me it is OK. File will be added to main repo, when PR will be merged.
Perfect.
But now I have created new branch and I have new commits and still commit with my config file appears as a commit related to the new branch...
So how can I remove it?
Or maybe I need to wait till QA accept my previous PR and merge it?