Update file to git after each run


I have a test where I need to use a “card number”, that number can only be used once, so, in my script I have a csv list of unused numbers and, everytime I run that test it deletes the one that was used.
My problem is, using testops/jenkings/wtv, the file (without the used numbers) doesn’t gets updated to the repo. Is there anything missing? Is there any other option for me to make this happen?

Thanks in advance


I will ask my internal problem then come back soon.