Gitlab is taking the old commits

Hello,

I made some changes in the .gitlab-ci.yml file and deployed the scripts. As the output was not which I expected, again I put the modifications back. The gitlab is now picking up the modifications which I have done before and the deployment is getting failed.

I have cleared the gitlab runners cache, the cache of unused docker containers and images and the browser cache also, but it still picks the same modifications.

Is there any way where I could clear the cache anywhere else or put the gitlab to the previous state when it was working?

Thanks