So long story short. I made a lot of changes to a project ( more than 85 files) and commit and push it to remote(bitbucket), and did 2 more commits after that, now my colleague ask me to not include the yarn.lock and package-lock.json files.
what i did was just normal:
git add .
git commit -m " message"
git push origin myBranch
to push to the remote, and it's only me working on this branch.
now my question is, How can I exclude them?
I have found this answer: Git: Remove committed file after push but it makes me more confused