I cloned a repository (from gitlab) and I think I commit a mistake.
First I cloned the repo, I made some changes and committed them in a local branch, then I realized I wanted to see another branch of the repo "another_branch" so I did
git checkout another_branch
but then I realized that some files were not there. So I did
git pull origin another_branch
and I got the files but I got the message
uto-merging README.md
CONFLICT (content): Merge conflict in README.md
Automatic merge failed; fix conflicts and then commit the result.
So now my repo is a mess with middle merging and uncommited changes, etc.
What did I do wrong and how can I correct this.