Error when try to upload MR - MR adds 7 commits

Hi,

I’ve been trying to upload my solution with an MR but I can’t pass the automatic tests apparently because the system validates previous commits in which I had errors. Before performing the MR I used ./build.sh and the tests passed correctly. The problem is that all my previous commits(7) with errors are analyzed. I also tried to do a git squash with all those other commits and the following message is generated. Please help with this issue.

A MR must only be created after a successful CI run in your branch
! Commit title is not syntax compliant:
Merge branch ‘master’ of https://gitlab.com/autonomicmind/challenges into aurajimenez
! Commit title is not syntax compliant:
Merge branch ‘aurajimenez’ of https://gitlab.com/autonomicmind/challenges into aurajimenez
Commit title is not syntax compliant:
Merge branch ‘master’ of https://gitlab.com/autonomicmind/training into aurajimenez
All commits must have a valid commit user.

A commit had user AuraPC.
Please make sure to use the following syntax:
Capitalized name, space and capitalized lastname.
For example: Aureliano Buendia
You can change your git user by running:
git config --global user.name 'Aureliano Buendia'

In adition, I modified the user but the error keeps coming up.

Please send the commit where you found the error, because with that we can know more about what happened to you.

In the other hand if you have 7 commits with problems you can use the commands:

git reset

If you didn’t know how to git reset works this link can help you.

And if your commit message is:

Merge branch ‘master’ of https://gitlab.com/autonomicmind/challenges into aurajimenez

You aren’t follow the template for the commits and you must read the Submission Guide and the Commit Syntax.

But how I say, please reply with the link of the commit to see more about that.

Hi, I really appreciate it. I saw your message a little late. I tried to use the git revert command in my commits but whenever I would validate the commit with ./build.sh test_commit_msg the execution would fail showing me the error of one of my first commits. That’s why the only solution I saw was to remove my branch and folder from the repository on my PC and start over.

Ok, when you feel stuck again try to use git reset, with --hard or --soft, depends what you need, with that you didn’t need to delete the branch or folder.

If you already solve this, you can mark as solved.