Write to .txt file from python not working

I use a python program that is a discord bot that is supposed to write to a txt file in github and it writes it and can read it but noting shows it the txt file and when I git push the txt file is still blank and the discord bot cant read it anymore.