Commit message for deleting files

What happens

Accidentaly, i staged a file to a commit for a solution i made. This file referes to other challenge, diferent from the one the commit was made for. I need to remove this file, in order to upload more commits

What do you understand or find about that problem

I need to create a new commit which only has the changes related to the removal of the file

Did you try any workaround? What did you do?

Reading the documentation, looking for the commit message required to remove files

I need help with

What commit body should i follow? I’m unsure if i should go with the “refac” type, or with “rever”

If that challenge was not approved in the merge request you have nothing to worry about. If the branch is already uploaded and you don’t understand much about git, I recommend you review some concepts like “rebase”. However, what you could do is stash the changes in your local branch delete the remote branch from the repository, correct the error, and re-upload everything from 0.

Best regards,